Page 1 of 1
new line without JS Editor
Posted: 27 Jan 2010, 22:56
by ankataris
Hi,
how do I get new lines (p or br) in textarea by disabled JS Editor?
Thanks
Re: new line without JS Editor
Posted: 01 Feb 2010, 13:29
by Jan
Hi, if you are not using js editor, then it is normally textarea field, so there are no such tags added.
Jan
Re: new line without JS Editor
Posted: 01 Feb 2010, 16:33
by ankataris
Hi,
but I thought, if I put "wrap=physical" in the textarea-tag (in view.html.php) , then I got line breaks?
Thanks
Re: new line without JS Editor
Posted: 01 Feb 2010, 20:22
by Jan
Hi, no idea what wrap=physical should mean?
Re: new line without JS Editor
Posted: 01 Feb 2010, 23:33
by ankataris
Hi,
I mean the HTML wrap options (parameter) - part of textareas - there are 3 ones:
- If you turn wrap "off" the text is handled as one long sequence of text without linebreaks;
- If you set it to "virtual" the text appears on your page as if it recognized linebreaks - but when the form is submitted the linebreaks are turned off;
-> and now my wish:
- If you set it to "physical" the text is submitted exactly as it appears on the screen - linebreaks included
For example:
<textarea cols="45" rows="10" name="myname" id="myname" wrap="physical">
Now here is the written text in form. <br>
And more text after a new line.
</textarea>
Hope, you have now an idea?
Greatings & Thanks
Re: new line without JS Editor
Posted: 02 Feb 2010, 17:28
by Jan
Hi, then you need maybe some converting of "\n" to "<br />" in the code, but I think this must be customized in the code, so after sending the data, this will be converted
Jan