Editor: prevent errors in editor-expand when the Text editor is not used. Props iseulde, fixes #31163.
Built from https://develop.svn.wordpress.org/trunk@31361 git-svn-id: http://core.svn.wordpress.org/trunk@31342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8fe95c9e65
commit
c765424ad5
|
@ -323,7 +323,7 @@
|
|||
var windowPos = $window.scrollTop(),
|
||||
type = event && event.type,
|
||||
resize = type !== 'scroll',
|
||||
visual = ( mceEditor && ! mceEditor.isHidden() ),
|
||||
visual = mceEditor && ! mceEditor.isHidden(),
|
||||
buffer = autoresizeMinHeight,
|
||||
postBodyTop = $postBody.offset().top,
|
||||
borderWidth = 1,
|
||||
|
@ -350,6 +350,11 @@
|
|||
topHeight = heights.textTopHeight;
|
||||
}
|
||||
|
||||
// TinyMCE still intializing.
|
||||
if ( ! visual && ! $top.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
topPos = $top.parent().offset().top;
|
||||
editorPos = $editor.offset().top;
|
||||
editorHeight = $editor.outerHeight();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31360';
|
||||
$wp_version = '4.2-alpha-31361';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue