• Resolved fabwintle

    (@fabwintle)


    Hi, thanks very much for a great plugin.
    I am using the Activate the basic TinyMCE editor to new topics and replies to add basic HTML to your input. (v1.0.5) functionality.

    I am having issues wiht people pasting code and the code not being clean.

    I read on https://codex.bbpress.org/enable-visual-editor/ that I can add additional code to force clean the HTML (last bit of code on that page)

    
    function bbp_tinymce_paste_plain_text( $plugins = array() ) {
        $plugins[] = 'paste';
        return $plugins;
    }
    add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );
    

    Would this function need to be modified to work with the bbp Toolkit wysiwig editor or I can use as is?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pascal Casier

    (@casiepa)

    Hi, it should work by just adding it to a function.php of your theme or so.
    But I like it, so I’ll add it to my list of enhancements so it can be done from within the toolkit.

    Thanks for the info.
    Pascal.

    Thread Starter fabwintle

    (@fabwintle)

    Awesome Pascal, thank you!

    Plugin Author Pascal Casier

    (@casiepa)

    Added to v1.0.8, so when it’s released it will be activated by default.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cleaning up code in wysiwig editor’ is closed to new replies.