summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/tiny_mce/plugins/preview/example.html
diff options
context:
space:
mode:
authortill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-02 15:14:32 +0000
committertill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-02 15:14:32 +0000
commit7a17e0136d32d2a53484cea4eaf8a7731825ee60 (patch)
tree6d5219fa190c43be7185384e49b8450b3de12ff5 /roundcubemail/program/js/tiny_mce/plugins/preview/example.html
parente7d1f50210a049d275bb0430c7d811159b0ba2d4 (diff)
fix path/structure (my bad)
git-svn-id: https://svn.roundcube.net/trunk@5383 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/tiny_mce/plugins/preview/example.html')
-rw-r--r--roundcubemail/program/js/tiny_mce/plugins/preview/example.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/roundcubemail/program/js/tiny_mce/plugins/preview/example.html b/roundcubemail/program/js/tiny_mce/plugins/preview/example.html
new file mode 100644
index 000000000..b2c3d90ce
--- /dev/null
+++ b/roundcubemail/program/js/tiny_mce/plugins/preview/example.html
@@ -0,0 +1,28 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<script language="javascript" src="../../tiny_mce_popup.js"></script>
+<script type="text/javascript" src="jscripts/embed.js"></script>
+<script type="text/javascript">
+tinyMCEPopup.onInit.add(function(ed) {
+ var dom = tinyMCEPopup.dom;
+
+ // Load editor content_css
+ tinymce.each(ed.settings.content_css.split(','), function(u) {
+ dom.loadCSS(ed.documentBaseURI.toAbsolute(u));
+ });
+
+ // Place contents inside div container
+ dom.setHTML('content', ed.getContent());
+});
+</script>
+<title>Example of a custom preview page</title>
+</head>
+<body>
+
+Editor contents: <br />
+<div id="content">
+<!-- Gets filled with editor contents -->
+</div>
+
+</body>
+</html>