Hot answers tagged

3

Regardless of what you have configured as valid children, Wordpress handles p tags as well as line breaks in a very unique way. You'll probably notice eventually, if you haven't already, that when switching from the text editor to the visual editor and back that your <p> tags get stripped, similar to what occurs on the frontend. A way to block this ...


2

Please use this code in your functions.php 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 : This will paste copied text in plain format


1

You can pass an array of settings to the editor instance. For possible values please refer to the tinymce documentation, in your case 'init_instance_callback' might be helpful. https://www.tinymce.com/docs/configure/integration-and-setup/#init_instance_callback wp_editor('', 'sedemoeditor', array( 'tinymce' => array( ...



Only top voted, non community-wiki answers of a minimum length are eligible