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

WordPress Trac noreply at wordpress.org
Fri Aug 29 00:01:10 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 azaozz):

 Replying to [comment:9 nacin]:

 Was thinking about a PHP filter too. It won't work in this case (this is
 specific for the hack @KingYes is using in JS).

 Currently to disable editor expand, the script has to be deregistered and
 `wp_autoresize_on` unset. Something like:

 {{{
 add_action( 'admin_init', 'my_deregister_editor_expand' );
 function my_deregister_editor_expand() {
         wp_deregister_script('editor-expand');
 }

 add_filter( 'tiny_mce_before_init', 'my_unset_autoresize_on' );
 function my_unset_autoresize_on( $init ) {
         unset( $init['wp_autoresize_on'] );
         return $init;
 }
 }}}

 That's pretty easy but having a filter will make it more straightforward.

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


More information about the wp-trac mailing list