Skip to:
Content
Pages
Categories
Search
Top
Bottom

Paste as plain text for the Teeny Editor?


  • dusemedia
    Participant

    @dusemedia

    According to the documentation, the code below enables paste as plain text in the visual editor:

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

    It works fine when using the full visual editor, enabled by this code:

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    But paste as plain texts does not work when using the Teeny editor, enabled with this code:

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    Does anyone have a snippet to enable paste as plain text when using the Teeny 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