danishkhan/NicEdit

Messy markup

Closed this issue · 2 comments

It seems like NicEdit generates pretty ugly markup when you edit stuff in the «visual editor».
Assume I'd like to input this strings:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque laoreet.,

taping return to set new line. Then in the «Edit HTML» section it'll be

Lorem ipsum dolor sit amet,<div>consectetur adipiscing elit.</div><div>Pellentesque laoreet.</div>

Things will go even worse if we'll try to add blank line like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Pellentesque laoreet.,

Lorem ipsum dolor sit amet,<div>consectetur adipiscing elit.</div><div><br></div><div>Pellentesque laoreet.</div>

And so on..
I heard this kind of job is for <p></p> and <br /> buddies.

Any suggestions on a fix for this?

Brian had created NicEdit during his time at RIT and has been thinking about completely re-doing the core code for a while now, but I doubt you'll see a v3 anytime soon.