Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editor autoresize

  • @rinh

    Participant

    Hi
    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)
  • @robin-w

    Moderator

    Not even looked at it, but does this plugin have any answers?

    Advanced TinyMCE Configuration

    @robin-w

    Moderator

    also this?

    https://www.tiny.cloud/docs-4x/plugins/autoresize/

    suggests just using autoresize rather than wp version?

    It would be a neat feature to have, but I don’t have the time.

    If you crack it, do come back

    @robin-w

    Moderator

    wish I had time, but this looks like a js approach

    https://wp-qa.com/tinymce-autoresize

    @rinh

    Participant

    Thanks for the links 🙂 It’s not a necessary feature, but agree would be neat. I think one issue is that most scripts and functions are for when you have TinyMCE as the deafault WordPress editor, but this is inside bbPress.

    I’ll definitely let you know if I find a working solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar