I am working on a Dreamweaver like editor
The editor should be fully functional in code-view.
(inserting/editing tags, code snippets, etc.)
I am running into this:
exchanging data from wysiwyg to code view
form.value = div.innerHTML;
linebreaks '\n' are lost, or messed up!
Apparently all wysiwyg-editors(like html-area,spaw)
have the same problem.
Anyone out there who has a clue how to keep
the linebreaks the way they were set?