tinymce plain text paste

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

nick peterson
Participant

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!

#148887

Sidratul Sohrat
Spectator

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.