diff --git a/lib/simditor.js b/lib/simditor.js index 564ef062..2f77578d 100644 --- a/lib/simditor.js +++ b/lib/simditor.js @@ -618,7 +618,8 @@ Formatter = (function(superClass) { return; } if ($node[0].nodeType === 3) { - text = $node.text().replace(/(\r\n|\n|\r)/gm, ''); + text = $node.text().replace(/(\r\n|\n)/gm, ""); + text = $node.text().replace(/(\r)/gm, " "); if (text) { textNode = document.createTextNode(text); $node.replaceWith(textNode);