Upgrade TinyMCE
[citadel.git] / webcit / tiny_mce / plugins / preview / editor_plugin_src.js
index d3bb164ade6e25a3ca37313be6047c4c750ac5de..80f00f0d9f67e89b7315ad1b9e445dd75bab4e48 100644 (file)
@@ -1,5 +1,11 @@
-/*
- * Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
  */
 
 (function() {
@@ -21,7 +27,7 @@
                                        height : parseInt(ed.getParam("plugin_preview_height", "600")),
                                        resizable : "yes",
                                        scrollbars : "yes",
-                                       popup_css : css.join(','),
+                                       popup_css : css ? css.join(',') : ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css"),
                                        inline : ed.getParam("plugin_preview_inline", 1)
                                }, {
                                        base : ed.documentBaseURI.getURI()
@@ -44,4 +50,4 @@
 
        // Register plugin
        tinymce.PluginManager.add('preview', tinymce.plugins.Preview);
-})();
+})();
\ No newline at end of file