[wp-trac] [WordPress Trac] #29360: How I can disable the `auto-height` in Editor?
WordPress Trac
noreply at wordpress.org
Thu Aug 28 18:45:35 UTC 2014
#29360: How I can disable the `auto-height` in Editor?
--------------------------+------------------------------
Reporter: KingYes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by azaozz):
Replying to [comment:5 KingYes]:
As I mentioned [#comment:4 above], you have to set it to false after you
copy the init object:
{{{
window.tinyMCEPreInit.mceInit[ last_element_id ] = _.extend({},
tinyMCEPreInit.mceInit.content);
window.tinyMCEPreInit.mceInit[ last_element_id ].wp_autoresize_on = false;
}}}
It's not the best idea to blindly copy the init object. There may be other
settings (including settings added by other plugins) that could interfere.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29360#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list