]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin.dev.js
Wordpress 3.3
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / wpfullscreen / editor_plugin.dev.js
index 29b56caaccb79b66be4e0ce352b5649b95b1a35b..6290c11233ba9181c75690cf1a7b6e6e7d050bb8 100644 (file)
                        });
 
                        ed.addCommand('wpFullScreenInit', function() {
-                               var d = ed.getDoc(), b = d.body, fsed;
+                               var d, b, fsed;
 
-                               // Only init the editor if necessary.
-                               if ( ed.id == 'wp_mce_fullscreen' )
-                                       return;
+                               ed = tinymce.get('content');
+                               d = ed.getDoc();
+                               b = d.body;
 
                                tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
 
@@ -95,7 +95,7 @@
 
                        // Register buttons
                        if ( 'undefined' != fullscreen ) {
-                               ed.addButton('fullscreen', {
+                               ed.addButton('wp_fullscreen', {
                                        title : 'fullscreen.desc',
                                        onclick : function(){ fullscreen.on(); }
                                });