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

Built from https://develop.svn.wordpress.org/trunk@31727


git-svn-id: http://core.svn.wordpress.org/trunk@31708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-03-11 20:08:27 +00:00
parent c16129d3cf
commit 9c09d0ea2c
4 changed files with 6 additions and 2 deletions

View File

@ -585,6 +585,10 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
margin = 8,
adminbarHeight = 0;
if ( ! currentSelection ) {
return;
}
windowPos = window.pageYOffset || document.documentElement.scrollTop;
adminbar = tinymce.$( '#wpadminbar' )[0];
mceToolbar = tinymce.$( '.mce-toolbar-grp', editor.getContainer() )[0];

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31726';
$wp_version = '4.2-alpha-31727';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.