Open rraub opened 8 years ago
I investigated this issue and this is occurring due to wpautop. I will further check to see if it can be handled.
:+1: It's always wpautop lol
Further analysis shows that tinymce is also formatting non block elements and here it identifies comment as one of the non block elements and adding <p>
. I couldn't get a clean fix as it is being changed in two places one time by wpautop and other time by tinymce.
Three solutions possible:
<p>
tag -- needs change in core library files of wordpress and tinymce so not feasible.<ul>
tag -- Original content comments may be lost so not inclined towards it.
If you have a page with:
it will show up when you click edit in page as:
(And we do have wpautop off) It breaks up the list with the commented out html. Comments in general are not going to survive well in a front end editor like this, however they shouldn't have a negative effect on the pages layout like this. This is probably a TinyMCE issue, but we should make sure its addressed.