I want to only paste plain text in tinymce frontend, but I’m not able get that done using
all the documentation about tinymce.
<?php $cont = isset($post) ? $post->post_content : '';
wp_editor(wpautop(stripslashes($cont)),'post_content', array(
'textarea_name' ► 'pack[post_content]',
'teeny' ► 1, 'media_buttons' ► 0,
'tinymce' ► array('toolbar1' ► 'bold,italic,underline,blockquote,strikethrough,bullist,link,unlink,media'),
'quicktags' ► false, 'textarea_rows' ► 15)); ?>
How can I add ‘paste as plain text’ to the frontend tinymce editor?
This should be the solution, but how can I add this?
tinymce.init({
plugins: "paste",
paste_as_text: true
});
Thanks!