Mercurial > public > madeira
annotate static/js/tinymce/jscripts/tiny_mce/plugins/preview/example.html @ 74:49f704e58400
Update fabfile for Django 1.4 changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 Jul 2012 13:55:25 -0500 |
parents | 966cde8635c0 |
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> |