Skip to content

Commit 2d94352

Browse files
Zyntondmo-odoo
authored andcommitted
[FIX] prevent <br/> to be added as a string on paste \n
1 parent 72ebe18 commit 2d94352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ export class OdooEditor extends EventTarget {
14401440
_onPaste(ev) {
14411441
ev.preventDefault();
14421442
const pastedText = (ev.originalEvent || ev).clipboardData.getData('text/plain');
1443-
this._insertText(pastedText.replace(/\n+/g, '<br/>'));
1443+
this._insertText(pastedText);
14441444
this.historyStep();
14451445
}
14461446

0 commit comments

Comments
 (0)