Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
nyDavid #1
Line breaks in text editor
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
nyDavid Guest
-
Getting line breaks between words
Is there a way to have InDesign wrap to a new line between words? Here's why ... I'm working on a VDP (Variable Data Printing) project of an eye... -
Respecting line breaks?
Hi all, I'm try to make a forum, in which people can add messages to a discussion. I use a textarea for input and store this text in a database.... -
When text string is mailed, extra line breaks are introducd
Hi all, I have the following message string: $message = <<<EOT Personal Information: Name: {$_POST} Address: {$_POST} EOT; -
Excess Line Breaks
I updated to MX and opened my site up to find it had put in large numbers of empty lines between lines of code... I'm working with .php files and... -
Line Breaks (DB APP)
What server model are you using? ASP? PHP? CF? -- Dave ----------------------------------------------------------------- If I were half as...



Reply With Quote

