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 !

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, privacy policy and cookie policy

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