• Hello, I found myself not begin happy about autoresize feature, it does not work correctly, I’d prefer having an ability to perform manual resize of editor. I all I have found in the code does not affect editor’s behavior. I tried to change editor-expand.js, changing mceEditor.settings.wp_autoresize_on then tried to make whole resize function return false. But this editor keeps performing autoresing. Is there a way to disable it and add manual resize?

    https://www.ads-software.com/plugins/tinymce-advanced/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nick222

    (@nick222)

    Ohh excuse me I found a solution in php, via filters, you can disable autoresize by following code.
    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;
    }

    Thread Starter nick222

    (@nick222)

    Although it still behaves a bit strange, it performs autoresize on page size for a second but then disables it. Is there a way to disable that behavior? It seems there other functions besides ‘editor-expand’ and method execCommand( ‘wpAutoResize’ ); . Does anyone know where they are.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable autoresize?’ is closed to new replies.