From 013f0da1472767424eb3eb277a016708d239e998 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Tue, 11 Jan 2022 13:37:51 +0000 Subject: [PATCH] [FIX] web_editor: properly save history step when pasting text Before this commit, when trying to paste an url, the editor was properly creating a link but did not create a step in the history. So when the user hit enter just after the paste, the last link insertion was reverted. Task-2720366 closes odoo/odoo#83396 X-original-commit: 0e37742d3caba1c6544e5b466503f155626375eb Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js index f82c9396874..6f23791405d 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js @@ -2829,6 +2829,7 @@ export class OdooEditor extends EventTarget { } } } + this.historyStep(); } } /**