This is a migrated thread and some comments may be shown as answers.

[Solved] Html still present when you save a blank entry from editor

0 Answers 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Prince
Top achievements
Rank 1
Prince asked on 17 Aug 2011, 05:01 PM
When I save a blank entry, there are html tags left behind that cannot be removed, the cursor cannot get behind the html to remove it.
Initially in firefox, this will be "<br/>" in chrome it will be &nbsp;

But also if you enter text, submit it then remove the text, sometimes you are left with a p tag with no text in that you cant remove either.
I noticed this by looking at the submits in debug, and I am also saving the html generated to database and due to various reports by my clients about data going blank, i ended up storing a history of every change (that may not necessarily be the editor doing this).

The inconsistency between browsers on the html generated is making it really difficult to resolve issues around the editor.

What I need is if the editor is blank, can we make sure there is no html hanging around (no <br />, <p> </p>, &nbsp; etc).

Thanks
Tags
Editor
Asked by
Prince
Top achievements
Rank 1
Share this question
or