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)

  • Victor Duse
    Participant

    @divimundo

    No one?


    Robin W
    Moderator

    @robin-w

    it’s a wordpress rather than bbpress issue.

    The documentation could be clearer, but that section refers to the tinymce not the text editor

    I’ve not tried it, but this might help

    Paste As Plain Text By Default


    dusemedia
    Participant

    @dusemedia

    That plugin works fine for the WP Classic Editor but not for the BBPress Teeny editor.

    The paste as plain text code in the documentation above works fine for the regular BBPress TinyMCE editor but not for the BBPress Teeny editor.


    Robin W
    Moderator

    @robin-w

    sorry, that’s as good as I can get it. I googled around a bit, but could find nothing else.

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