We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8cfdfb commit 74ee646Copy full SHA for 74ee646
src/editor.js
@@ -1476,7 +1476,7 @@ export class OdooEditor extends EventTarget {
1476
const range = this.document.caretRangeFromPoint(ev.clientX, ev.clientY);
1477
setCursor(range.startContainer, range.startOffset);
1478
}
1479
- editorCommands.insertHTML(this, pastedText.replace(/\n+/g, '<br/>'));
+ this._insertText(pastedText);
1480
});
1481
1482
this.historyStep();
0 commit comments