Make WordPress Core

Changeset 39904


Ignore:
Timestamp:
01/15/2017 02:59:45 AM (8 years ago)
Author:
azaozz
Message:

TinyMCE: prevent the inline toolbar from appearing on partially selected wpview nodes. This can happen when HTML is initially loaded in the editor and wpview is the first node, or sometimes on repeatedly pasting the same wpview.

Props gitlost.
Fixes #38849.

File:
1 edited

Legend:

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

    r39334 r39904  
    191191
    192192                editor.on( 'wptoolbar', function( event ) {
    193                     if ( isView( event.element ) ) {
     193                    if ( ! event.collapsed && isView( event.element ) ) {
    194194                        event.toolbar = toolbar;
    195195                    }
Note: See TracChangeset for help on using the changeset viewer.