Editor: when switching editor-expand off for the first time use the default editor height. Props avryl, fixes #30760 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@30977 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fd4231c2a1
commit
6695ac3bab
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user