WordPress.org

Make WordPress Core

Changeset 31727


Ignore:
Timestamp:
03/11/2015 08:07:54 PM (4 years ago)
Author:
azaozz
Message:

TinyMCE, floating toolbars: return early if no selected element in the editor. See #30619.

File:
1 edited

Legend:

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

    r31725 r31727  
    586586                    adminbarHeight = 0;
    587587
     588                if ( ! currentSelection ) {
     589                    return;
     590                }
     591
    588592                windowPos = window.pageYOffset || document.documentElement.scrollTop;
    589593                adminbar = tinymce.$( '#wpadminbar' )[0];
Note: See TracChangeset for help on using the changeset viewer.