SyntaxFix
Write A Post
Hire A Developer
Questions
Take care to strip out newlines from any string you pass to setData(). Otherwise an exception gets thrown.
setData().
Also note that even if you do that, then subsequently get that data again using getData(), CKEditor puts the line breaks back in.
getData(),