Skip to content

Commit 74ee646

Browse files
Zyntondmo-odoo
authored andcommitted
[FIX] properly escape dropped text
1 parent b8cfdfb commit 74ee646

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
@@ -1476,7 +1476,7 @@ export class OdooEditor extends EventTarget {
14761476
const range = this.document.caretRangeFromPoint(ev.clientX, ev.clientY);
14771477
setCursor(range.startContainer, range.startOffset);
14781478
}
1479-
editorCommands.insertHTML(this, pastedText.replace(/\n+/g, '<br/>'));
1479+
this._insertText(pastedText);
14801480
});
14811481
}
14821482
this.historyStep();

0 commit comments

Comments
 (0)