tinymce plain text paste

in Download Manager Free

Viewing 2 posts - 1 through 2 (of 2 total)
Mar 19, 2021 at 8:23 am
#148864
Participant
nick peterson
OP

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!

Mar 19, 2021 at 11:53 am
#148887

Please elaborate more on your issue. It seems like it’s not related to WPDM.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic "tinymce plain text paste" is closed to new replies.