[wp-trac] [WordPress Trac] #29360: How I can disable the `auto-height` in Editor?

WordPress Trac noreply at wordpress.org
Thu Aug 28 22:20:34 UTC 2014


#29360: How I can disable the `auto-height` in Editor?
--------------------------+-------------------------
 Reporter:  KingYes       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------

Comment (by nacin):

 Replying to [comment:6 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.

 This is messy, what about a PHP filter?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29360#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list