]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm
Wordpress 2.7.1
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / fullscreen / fullscreen.htm
index a18f3967864ff1819132681440fcc132da2d222d..430f798c21ff6c30d1e99ff4c32385c5915db52e 100644 (file)
@@ -3,14 +3,14 @@
 <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-       <script type="text/javascript" src="../../tiny_mce.js?v=307"></script>
+       <script type="text/javascript" src="../../tiny_mce.js?ver=3211"></script>
        <script type="text/javascript">
                function patchCallback(settings, key) {
                        if (settings[key])
                                settings[key] = "window.opener." + settings[key];
                }
 
-               var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings;
+               var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
 
                // Clone array
                for (var n in paSe)
                settings['ask'] = false;
                settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
                settings['fullscreen_is_enabled'] = true;
-               settings['fullscreen_editor_id'] = window.opener.tinyMCE.activeEditor.id;
+               settings['fullscreen_editor_id'] = oeID;
                settings['theme_advanced_resizing'] = false;
                settings['strict_loading_mode'] = true;
 
                settings.save_onsavecallback = function() {
-                       window.opener.tinyMCE.activeEditor.setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
-                       window.opener.tinyMCE.activeEditor.execCommand('mceSave');
+                       window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
+                       window.opener.tinyMCE.get(oeID).execCommand('mceSave');
                        window.close();
                };
 
@@ -56,7 +56,7 @@
                }
 
                function moveContent() {
-                       window.opener.tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent());
+                       window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
                }
 
                function closeFullscreen() {
@@ -78,7 +78,7 @@
                function render() {
                        var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
 
-                       e.value = window.opener.tinyMCE.activeEditor.getContent();
+                       e.value = window.opener.tinyMCE.get(oeID).getContent();
 
                        vp = dom.getViewPort();
                        settings.width = vp.w;