La vida vista con mis manos.

Disable wordpress editor autoresize

By on 26 julio, 2016 in Coding with 0 Comments

The new wordpress editor autoresize feature, is making troubles all over the place, if you need for some reason to disable this… you can use this wordpress/php function..

// Disable wordpress autoresize script on the admin view
function editor_resize_disable() {
  wp_deregister_script('editor-expand');
}

// After unregister the autoresize script, i need to reset the filter
function editor_resize_off( $init ) {
  unset( $init['wp_autoresize_on'] );
  return $init;
}

add_action( 'admin_init', 'editor_resize_disable' );
add_filter( 'tiny_mce_before_init', 'editor_resize_off' );

Tags: , , , ,

About the Author

About the Author: Ing. Sistemas ... Programador, @Koombea RockStar | Soy un Zombie | Amo el Café | Ciclomontañista | Nunca Duermo | #PizzaBrain .

Subscribe

If you enjoyed this article, subscribe now to receive more just like it.

Top