From f52c6bfaebb1180413efad16e0955655e895df25 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 16 Jul 2015 17:28:05 +0200 Subject: [PATCH] [FIX] website: editor: when create a link, the saved range is obsolete, and when the user click on an other option the range selection fail --- addons/website/static/src/js/website.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 2f187ad5bf9..66ca8d9cb48 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -366,9 +366,9 @@ define(['summernote/summernote'], function () { var def = new $.Deferred(); editor.on("save", this, function (linkInfo) { - linkInfo.range.select(); $editable.data('range', linkInfo.range); def.resolve(linkInfo); + $editable.data('range', range.create()); $('.note-popover .note-link-popover').show(); }); editor.on("cancel", this, function () {