а

Remove Char(13) / Char(10) from textarea


#1

We have some forms with textareas. If users copy and paste text from i.e. external text editors they paste Char(13) (not \r) into the area.

If I get the text with getItemValue(“name”) I get back the Char(13). How to replace these characters.


#2

Unfortunately the problem cannot be reproduced locally. Could you please, provide a complete demo or a demo link, where the problem can be reconstructed.


#3

Simply try

myinputform.setItemValue(‘fm_backnote’,‘Line 1\n\nLine 2’);pict ');


#4

It works well for me:
http://snippet.dhtmlx.com/d34df0f37