I am running a multi author blog. I allowed only visual editor for authors. So, i don't want to allow them to paste disallowed html tags from other source. I want, text will always paste as plain text. Please help !

1 Answer 1

function tinymce_paste_as_text( $init ) {
  $init['paste_as_text'] = true;
  return $init;

add_filter('tiny_mce_before_init', 'tinymce_paste_as_text');

For details please follow link : tiny_mce_before_init



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.