axinya
05-18-2004, 09:25 PM
I am working on a Dreamweaver like editor
(javascript,php,browser)
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?
Axinya
(javascript,php,browser)
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?
Axinya