~quam-plures-core/quam-plures/bug-614012

« back to all changes in this revision

Viewing changes to qp_plugins/tinymce_plugin/tiny_mce/plugins/preview/example.html

  • Committer: yabs
  • Author(s): EdB
  • Date: 2010-07-23 07:41:42 UTC
  • mfrom: (7507.5.4 upgrade_tinymce_core)
  • Revision ID: yabs@innervisions.org.uk-20100723074142-1xhibhdhaibhq33m
Upgrade TinyMCE

Show diffs side-by-side

added added

removed removed

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