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:
parent
b10e168751
commit
2f4b08860b
|
@ -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.
|
||||
|
@ -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
Binary file not shown.
Loading…
Reference in New Issue