Skip to:

Editor autoresize

  • rinh


    First, thanks for all the help so far with functions and filters! The forum is done, but there is one feature I missed from the old forum and that’s having the editor autoresize with the content. I think this may be out of scope for this plugin, but perhaps someone knows something.

    I looked around and it seems WordPress TinyMCE have this feature, but it’s not enabled. I did some terrible attempt (you’re allowed to laugh) to add it. Not only did it break my toolbar 1, but it didn’t work either

    function bbp_enable_visual_editor( $args = array() ) {
        $args['quicktags'] = false;
        $args['teeny'] = false;
        $args['tinymce'] = array( 
        'tinymce' => array(
                'toolbar1' => 'formatselect, bold, italic, underline, strikethrough, blockquote, link, forecolor, bullist, numlist, alignleft, aligncenter, alignright, outdent, indent, undo, redo',
    	    'autoresize_min_height' => 100,
                'wp_autoresize_on'      => true,
                'plugins'               => 'wpautoresize',
        return $args;
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar