• Resolved Robert

    (@elvaron)


    Hi!

    Editor height is set to 350px by default (in class-admin.php). How can I change it? Is there any filter hook to change this value?

    Robert

Viewing 1 replies (of 1 total)
  • Plugin Author Marco Chiesi

    (@marcochiesi)

    You may use the wp_editor_settings filter with a higher priority.

    The plugin calls the filter this way:
    add_filter( 'wp_editor_settings', array( $this, 'editor_settings' ), 5, 2 );

    You may do something like this:

    
    add_filter( 'wp_editor_settings', 'my_editor_settings', 6, 2 );
    function my_editor_settings( $settings, $editor_id ) {
      if ( strstr( $editor_id, 'black-studio-tinymce' ) ) {
        $settings['editor_height'] = 500;
      }
      return $settings;  
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Editor height’ is closed to new replies.