editor: pass through logging configuration to the logger module
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / canvas.js
index 60782c2..70c0f49 100644 (file)
@@ -102,7 +102,7 @@ $.extend(Canvas.prototype, {
                 return; // TODO: alert
             }
 
                 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;
                 cursor = canvas.getCursor(),
                 element = cursor.getPosition().element,
                 lhs, rhs;