Hi,

I am facing the problem that when I read the content of the texteditor, store
it in a javascript variable, and then write it again into the editor area, all
line breaks (not html line breaks, just the line breaks for the code structure)
are gone.

For Example if the content of the Editor is the following:
-------------------
Test line 1



Test line 5
----------------

If I know call my function the value of the texteditor will be somethign like:
"Test line1 Test line 5"
I tried finding the linebreaks and replacing them (either \n, \r or \n\r) but
had no success in doing that.

My code of the function:
var theDom=dw.getDocumentDOM();
var theDom=dw.getDocumentDOM();
var temp = theDom.documentElement.outerHTML;
theDom.documentElement.outerHTML="";
theDom.documentElement.outerHTML=temp;

So I assume Javascript and dw are using different formats, but I cant find
much information about whats being used.

Any help appreicated!

Best,
David