i'm a richinputtext (i have problems) foo potential fix applied here var old = super.getText(); var str = old.split("\r").join("\n"); return str; foo