diff --git a/src/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js b/src/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js index f36e86369b..31aac846f9 100644 --- a/src/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js +++ b/src/wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js @@ -1,3 +1,5 @@ +/* global tinymce */ + (function() { tinymce.create('tinymce.plugins.wpLink', { /** @@ -18,7 +20,7 @@ ed.windowManager.open({ id : 'wp-link', width : 480, - height : "auto", + height : 'auto', wpDialog : true, title : ed.getLang('advlink.link_desc') }, { @@ -48,7 +50,7 @@ author : 'WordPress', authorurl : 'http://wordpress.org', infourl : '', - version : "1.0" + version : '1.0' }; } }); diff --git a/src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js b/src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js index f7044c461a..a0d28a4851 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/editor_plugin_src.js @@ -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.