From 21cd1dffd99035aebb24362da299ce53ed64a980 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 8 Jul 2014 22:55:51 +0000 Subject: [PATCH] TinyMCE wpView: remove leftover/unused bits, see #28567. git-svn-id: https://develop.svn.wordpress.org/trunk@29038 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpview/plugin.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index 30179ad777..48d6a6c205 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -119,8 +119,6 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { dom.bind( clipboard, 'beforedeactivate focusin focusout', _stop ); dom.bind( selected, 'beforedeactivate focusin focusout', _stop ); - tinymce.DOM.addClass( editor.getContainer(), 'wpview-selected' ); - // Make sure that the editor is focused. // It is possible that the editor is not focused when the mouse event fires // without focus, the selection will not work properly. @@ -508,7 +506,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { } else { setViewCursor( true, view ); } - + } else if ( keyCode === VK.RIGHT ) { setViewCursor( false, view ); } else if ( keyCode === VK.DOWN ) { @@ -564,7 +562,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { editor.on( 'focus', function() { var view; - + focus = true; editor.dom.addClass( editor.getBody(), 'has-focus' ); @@ -597,10 +595,6 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { dom.removeClass( views, 'wpview-selection-after' ); dom.removeClass( views, 'wpview-cursor-hide' ); - if ( ! selected ) { - tinymce.DOM.removeClass( editor.getContainer(), 'wpview-selected' ); - } - if ( focus ) { if ( view ) { if ( className === 'wpview-selection-before' || className === 'wpview-selection-after' && editor.selection.isCollapsed() ) { @@ -608,8 +602,6 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { deselect(); - tinymce.DOM.addClass( editor.getContainer(), 'wpview-selected' ); - // Make sure the cursor arrived in the right node. // This is necessary for Firefox. if ( lKDN === view.previousSibling ) {