automatically added p – bug still there in visual editor
-
Hallo, after i updated to the latest version, i get automatically added
<p>
around all paragraphs, when i switch from html to visual. if i deactivate “Keep paragraph tags” in the setting, i cannot see any br or p at all. So, how can i keep activated “Keep paragraph tags” in the setting but stop tinymce adding<p>
to the text (and still see/add the<br>
tags) when i switch from html to visual in the editor?in the functions.php i have:
function tinymce_remove_root_block_tag( $init ) { $init['forced_root_block'] = false; return $init; } add_filter( 'tiny_mce_before_init', 'tinymce_remove_root_block_tag' );
and
remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );
- The topic ‘automatically added p – bug still there in visual editor’ is closed to new replies.