TinyMCE wpView: remove leftover/unused bits, see #28567.

Built from https://develop.svn.wordpress.org/trunk@29038


git-svn-id: http://core.svn.wordpress.org/trunk@28826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-07-08 22:56:14 +00:00
parent b10e168751
commit 2f4b08860b
3 changed files with 3 additions and 11 deletions

View File

@ -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 ) {

File diff suppressed because one or more lines are too long