WordPress.org

Make WordPress Core

Changeset 39910


Ignore:
Timestamp:
01/16/17 00:21:29 (8 months ago)
Author:
azaozz
Message:

TinyMCE: ensure the inline toolbar is shown and properly positioned when there are several wpview blocks in the editor and the user selects one after the other.

Props gitlost.
Fixes #38849.

File:
1 edited

Legend:

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

    r39902 r39910  
    967967 
    968968            if ( args.toolbar ) { 
    969                 if ( activeToolbar !== args.toolbar ) { 
    970                     activeToolbar = args.toolbar; 
     969                activeToolbar = args.toolbar; 
     970 
     971                if ( activeToolbar.visible() ) { 
     972                    activeToolbar.reposition(); 
     973                } else { 
    971974                    activeToolbar.show(); 
    972                 } else { 
    973                     activeToolbar.reposition(); 
    974975                } 
    975976            } else { 
Note: See TracChangeset for help on using the changeset viewer.