X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/d2daf4834ec70add492c9d4649620fc5ea7585d0..67d116b3f6f2b4a62f31433bd7b3cb85ecc0c171:/src/editor/modules/documentCanvas/canvas/canvas.js?ds=inline diff --git a/src/editor/modules/documentCanvas/canvas/canvas.js b/src/editor/modules/documentCanvas/canvas/canvas.js index 60782c2..70c0f49 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.js @@ -102,7 +102,7 @@ $.extend(Canvas.prototype, { return; // TODO: alert } - var text = clipboardData.getData('text/plain'), + var text = clipboardData.getData('text/plain').replace(/\r?\n|\r/g, ' '), cursor = canvas.getCursor(), element = cursor.getPosition().element, lhs, rhs;