]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js
WordPress 3.8
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / wpview / editor_plugin_src.js
index f7044c461adb44c09dee558fc7c76aaa9c26bd44..a0d28a48514980f81cb3b47ea7c3102ad0eedadb 100644 (file)
@@ -1,3 +1,4 @@
+/* global tinymce */
 /**
  * WordPress View plugin.
  */
@@ -8,7 +9,7 @@
                selected;
 
        tinymce.create('tinymce.plugins.wpView', {
-               init : function( editor, url ) {
+               init : function( editor ) {
                        var wpView = this;
 
                        // Check if the `wp.mce` API exists.
@@ -33,7 +34,7 @@
 
                        // When the editor's content has been updated and the DOM has been
                        // processed, render the views in the document.
-                       editor.onSetContent.add( function( editor, o ) {
+                       editor.onSetContent.add( function( editor ) {
                                wp.mce.view.render( editor.getDoc() );
                        });
 
@@ -41,7 +42,7 @@
 
                                // When a view is selected, ensure content that is being pasted
                                // or inserted is added to a text node (instead of the view).
-                               editor.selection.onBeforeSetContent.add( function( selection, o ) {
+                               editor.selection.onBeforeSetContent.add( function( selection ) {
                                        var view = wpView.getParentView( selection.getNode() ),
                                                walker, target;
 
@@ -95,7 +96,7 @@
 
                        // Triggers when the selection is changed.
                        // Add the event handler to the top of the stack.
-                       editor.onNodeChange.addToTop( function( editor, controlManager, node, collapsed, o ) {
+                       editor.onNodeChange.addToTop( function( editor, controlManager, node ) {
                                var view = wpView.getParentView( node );
 
                                // Update the selected view.