Line-Breaks
Added by Roman Klare 5 months ago
Hi,
I'm trying to enter Text in a textarea and then use it's innerHtml in die editor.
<textarea id="bla">.....
jQuery('#bla').keyup(function() {
var text = jQuery('#bla').val();
jQuery('#editor').elrte('val', text);
}
(I'm gonna have to save the plainText Version as well as the edited HTML-Version of the text.)
So far so good!
However, if i insert line-breaks in the textarea they won't appear in the editor. :-(
Anybody got any idea?
Replies (1)
RE: Line-Breaks
-
Added by Troex Nevelin 4 months ago
Editor shows HTML so line-breaks will not appear, you need to insert <br> instead if you want to show it in elRTE
(1-1/1)