• Hello,
    An average user never care about the “past as plain text” option, so I want to force this behavior on the frontend. There are some plugins and functions:

    function tinymce_paste_as_text( $init ) {
    $init[‘paste_as_text’] = true;
    return $init;
    }
    add_filter(‘tiny_mce_before_init’, ‘tinymce_paste_as_text’);

    and this works for the backend, but the wpuf frontend with tiny rich text editor pastes all the styles.

    Any help, maybe I need to use an other filter, or write something to the frontend-form.js

    ????

    Thanks

    https://www.ads-software.com/plugins/wp-user-frontend/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paste as plain text’ is closed to new replies.