]> git.mxchange.org Git - friendica.git/blob - library/tinymce/jscripts/tiny_mce/plugins/preview/example.html
b2c3d90ce08d6008662d8060f2284a9d60a0ec5a
[friendica.git] / library / tinymce / jscripts / tiny_mce / plugins / preview / example.html
1 <html xmlns="http://www.w3.org/1999/xhtml">\r
2 <head>\r
3 <script language="javascript" src="../../tiny_mce_popup.js"></script>\r
4 <script type="text/javascript" src="jscripts/embed.js"></script>\r
5 <script type="text/javascript">\r
6 tinyMCEPopup.onInit.add(function(ed) {\r
7         var dom = tinyMCEPopup.dom;\r
8 \r
9         // Load editor content_css\r
10         tinymce.each(ed.settings.content_css.split(','), function(u) {\r
11                 dom.loadCSS(ed.documentBaseURI.toAbsolute(u));\r
12         });\r
13 \r
14         // Place contents inside div container\r
15         dom.setHTML('content', ed.getContent());\r
16 });\r
17 </script>\r
18 <title>Example of a custom preview page</title>\r
19 </head>\r
20 <body>\r
21 \r
22 Editor contents: <br />\r
23 <div id="content">\r
24 <!-- Gets filled with editor contents -->\r
25 </div>\r
26 \r
27 </body>\r
28 </html>\r