Visual editor is removing HTML comments
-
I am having trouble keeping HTML comments once I switch over to Visual mode from HTML mode in the editor. This happens when there is an empty line above the comment, like this:
Phasellus dolor nulla, faucibus at aliquet eget, tincidunt at lacus. <!-- Comment -->
My thought is that the editor is trying to wrap a p tag around the comment and realizing that the tag would be empty and throwing the tag away, along with the HTML comment.
I know that the easiest answer would be not placing a blank line above the HTML comment but I have authors and getting them to do that all the time is really hard.
How can I get around this? Is there anyway to remove the p tags and keep the comments?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Visual editor is removing HTML comments’ is closed to new replies.