Daniel Kirsch wrote:
Denis McMahon wrote:
Go into the raw html and trim the surplus out by hand.

Which was not my question and could be more work than writing all html by hand. The editor should work as expected and should write as clean code as possible.

Actually the editor component I'm developing is for people with absolutely no HTML knowledges. They probably know MS Word and that's what they expect and should get.

Daniel
Can't you just walk the DOM in _javascript_ and remove any Node who's innerHTML property is empty? or maybe getElementsByTagName("span") instead of walking the whole tree...

hope this helps

moo


Reply via email to