From d19f7a398e76bc38b6083a67948f0b2f32728226 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 24 Apr 2014 04:10:51 +0000 Subject: [PATCH] Ensure the editor height is saved properly, props jupiterwise, see #28000, for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@28193 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/post.js b/src/wp-admin/js/post.js index 4eac7d1d9e..21f28e7d5e 100644 --- a/src/wp-admin/js/post.js +++ b/src/wp-admin/js/post.js @@ -1025,7 +1025,7 @@ jQuery(document).ready( function($) { if ( mce ) { editor.focus(); - toolbarHeight = $( '#wp-content-editor-container .mce-toolbar-grp' ).height(); + toolbarHeight = parseInt( $( '#wp-content-editor-container .mce-toolbar-grp' ).height(), 10 ); if ( toolbarHeight < 10 || toolbarHeight > 200 ) { toolbarHeight = 30;