标签: javascript string gwt ckeditor
使用javascript,我在UI中获得了IFrame。然后iframe.getContentDocument().getBody().setInnerText(val1);来设置值。但这导致忽略文本中的新行。
iframe.getContentDocument().getBody().setInnerText(val1);
示例:这是一个textArea多行文本。 字符串val1 =“”你好 hello1“; 但是在ckeditor中,它显示为:“ hello hello1”,它会跳过新行。 CKEditor是一个新功能,任何帮助都将非常有用。