annotate static/js/tinymce/jscripts/tiny_mce/plugins/preview/example.html @ 45:966cde8635c0

For issue #3, created a separate news app. Created import management command. Using TinyMCE editor in the admin. News model now stores HTML. The news page is now paginated. Each story has a perma-link now.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Mar 2012 20:02:39 -0500
parents
children
rev   line source
bgneal@45 1 <html xmlns="http://www.w3.org/1999/xhtml">
bgneal@45 2 <head>
bgneal@45 3 <script language="javascript" src="../../tiny_mce_popup.js"></script>
bgneal@45 4 <script type="text/javascript" src="jscripts/embed.js"></script>
bgneal@45 5 <script type="text/javascript">
bgneal@45 6 tinyMCEPopup.onInit.add(function(ed) {
bgneal@45 7 var dom = tinyMCEPopup.dom;
bgneal@45 8
bgneal@45 9 // Load editor content_css
bgneal@45 10 tinymce.each(ed.settings.content_css.split(','), function(u) {
bgneal@45 11 dom.loadCSS(ed.documentBaseURI.toAbsolute(u));
bgneal@45 12 });
bgneal@45 13
bgneal@45 14 // Place contents inside div container
bgneal@45 15 dom.setHTML('content', ed.getContent());
bgneal@45 16 });
bgneal@45 17 </script>
bgneal@45 18 <title>Example of a custom preview page</title>
bgneal@45 19 </head>
bgneal@45 20 <body>
bgneal@45 21
bgneal@45 22 Editor contents: <br />
bgneal@45 23 <div id="content">
bgneal@45 24 <!-- Gets filled with editor contents -->
bgneal@45 25 </div>
bgneal@45 26
bgneal@45 27 </body>
bgneal@45 28 </html>