Make WordPress Core

Changeset 29038


Ignore:
Timestamp:
07/08/2014 10:55:51 PM (11 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js

    r29022 r29038  
    120120        dom.bind( selected, 'beforedeactivate focusin focusout', _stop );
    121121
    122         tinymce.DOM.addClass( editor.getContainer(), 'wpview-selected' );
    123 
    124122        // Make sure that the editor is focused.
    125123        // It is possible that the editor is not focused when the mouse event fires
     
    509507                setViewCursor( true, view );
    510508            }
    511            
     509
    512510        } else if ( keyCode === VK.RIGHT ) {
    513511            setViewCursor( false, view );
     
    565563    editor.on( 'focus', function() {
    566564        var view;
    567        
     565
    568566        focus = true;
    569567        editor.dom.addClass( editor.getBody(), 'has-focus' );
     
    598596        dom.removeClass( views, 'wpview-cursor-hide' );
    599597
    600         if ( ! selected ) {
    601             tinymce.DOM.removeClass( editor.getContainer(), 'wpview-selected' );
    602         }
    603 
    604598        if ( focus ) {
    605599            if ( view ) {
     
    608602
    609603                    deselect();
    610 
    611                     tinymce.DOM.addClass( editor.getContainer(), 'wpview-selected' );
    612604
    613605                    // Make sure the cursor arrived in the right node.
Note: See TracChangeset for help on using the changeset viewer.