Hot answers tagged


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 ...


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


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. wp_editor('', 'sedemoeditor', array( 'tinymce' => array( ...

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