Skip to content

Commit ced2be6

Browse files
committed
[FIX] web_editor: crash on pasting from website
When pasting content on a web page with a web editor, a `browser is not defined` error occurs. This error seems to commit [1] import missing `browser` while calling `browser.setTimeout`. So we imported `browser` from owl to handle this error. [1]: odoo@3e8259b closes odoo#94509 Signed-off-by: Romain Derie (rde) <[email protected]>
1 parent 264b30a commit ced2be6

File tree

1 file changed

+2
-0
lines changed
  • addons/web_editor/static/src/js/editor

1 file changed

+2
-0
lines changed

addons/web_editor/static/src/js/editor/rte.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ var summernoteCustomColors = require('web_editor.rte.summernote_custom_colors');
1111

1212
var _t = core._t;
1313

14+
const { browser } = owl;
15+
1416
// Summernote Lib (neek change to make accessible: method and object)
1517
var dom = summernote.core.dom;
1618
var range = summernote.core.range;

0 commit comments

Comments
 (0)