Make WordPress Core

Changeset 31972


Ignore:
Timestamp:
04/01/2015 09:49:03 PM (10 years ago)
Author:
azaozz
Message:

TinyMCE: always focus the editor after using the floated toolbar.
Props iseulde. Fixes #30619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mce-view.js

    r31757 r31972  
    651651                    editor.dom.setAttrib( node, 'data-wpview-text', encodeURIComponent( text ) );
    652652                    wp.mce.views.createInstance( type, text, match.options ).render();
     653                    editor.focus();
    653654
    654655                    return true;
     
    666667            $( node ).trigger( 'wp-mce-view-unbind' );
    667668            editor.dom.remove( node );
     669            editor.focus();
    668670        }
    669671    } );
Note: See TracChangeset for help on using the changeset viewer.