mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 00:52:55 +01:00
TinyMCE wpView: remove leftover/unused bits, see #28567.
git-svn-id: https://develop.svn.wordpress.org/trunk@29038 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
854fa2b5d6
commit
21cd1dffd9
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user