View Full Version : Editor development: synchronizing code/wysiwyg

05-18-2004, 09:25 PM
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?


05-19-2004, 07:03 AM
PRB: Value of outerHTML Does Not Match Original File (http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q206891)
download Behavior (http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/download.asp)