Editor: when switching editor-expand off for the first time use the default editor height. Props avryl, fixes #30760 for trunk.
Built from https://develop.svn.wordpress.org/trunk@30977 git-svn-id: http://core.svn.wordpress.org/trunk@30963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a814ef7bcc
commit
6bde00ec42
|
@ -682,7 +682,13 @@
|
|||
}
|
||||
|
||||
function off() {
|
||||
var height = window.getUserSetting('ed_size');
|
||||
var height = parseInt( window.getUserSetting( 'ed_size', 300 ), 10 );
|
||||
|
||||
if ( height < 50 ) {
|
||||
height = 50;
|
||||
} else if ( height > 5000 ) {
|
||||
height = 5000;
|
||||
}
|
||||
|
||||
// Scroll to the top when triggering this from JS.
|
||||
// Ensures toolbars are reset properly.
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue