]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js
WordPress 3.8
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / wordpress / editor_plugin_src.js
index 13eae82d1a1d92b01a3bb38bdb6aac9b2ed750f4..4f7d587257a1ac1f89e3efa62b30844f8ea71497 100644 (file)
@@ -1,3 +1,4 @@
+/* global tinymce, getUserSetting, setUserSetting, switchEditors, autosave */
 /**
  * WordPress plugin.
  */
                                }
                        });
 
-                       ed.onExecCommand.add( function( ed, cmd, ui, val ) {
+                       ed.onExecCommand.add( function( ed, cmd ) {
                                if ( tinymce.isWebKit && style && ( 'InsertUnorderedList' == cmd || 'InsertOrderedList' == cmd ) )
                                        ed.dom.remove( style );
                        });
 
                                        last = k;
                                });
-                       };
+                       }
 
                        // keep empty paragraphs :(
                        ed.onSaveContent.addToTop(function(ed, o) {
 
                        // popup buttons for images and the gallery
                        ed.onInit.add(function(ed) {
-                               tinymce.dom.Event.add(ed.getWin(), 'scroll', function(e) {
+                               tinymce.dom.Event.add(ed.getWin(), 'scroll', function() {
                                        ed.plugins.wordpress._hideButtons();
                                });
-                               tinymce.dom.Event.add(ed.getBody(), 'dragstart', function(e) {
+                               tinymce.dom.Event.add(ed.getBody(), 'dragstart', function() {
                                        ed.plugins.wordpress._hideButtons();
                                });
                        });
 
-                       ed.onBeforeExecCommand.add(function(ed, cmd, ui, val) {
+                       ed.onBeforeExecCommand.add( function( ed ) {
                                ed.plugins.wordpress._hideButtons();
                        });
 
-                       ed.onSaveContent.add(function(ed, o) {
+                       ed.onSaveContent.add( function( ed ) {
                                ed.plugins.wordpress._hideButtons();
                        });
 
                                                ed.windowManager.close(null, id);
                                        }
                                }
-                       }
+                       };
 
                        // close popups when clicking on the background
                        tinymce.dom.Event.remove(document.body, 'click', closeOnClick);
                },
 
                _showButtons : function(n, id) {
-                       var ed = tinyMCE.activeEditor, p1, p2, vp, DOM = tinymce.DOM, X, Y;
+                       var ed = tinymce.activeEditor, p1, p2, vp, DOM = tinymce.DOM, X, Y;
 
                        vp = ed.dom.getViewPort(ed.getWin());
                        p1 = DOM.getPos(ed.getContentAreaContainer());