summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-11-06 10:04:19 +0000
committerNicolas Lempereur <nle@odoo.com>2019-11-06 14:33:49 +0000
commita3f5afdd53f5f0d8d76427fe14dce6f02e064a75 (patch)
tree6c864eb52b99d7bf63b13847818ee26255c8f83f /addons/web_editor/static/src/js/editor
parent00e2ae76c2aaf5438d4f1218d38871171476841d (diff)
[FIX] web_editor: link dialog over image keep image
In f29699231 (12.3) part of the code of the editor `Link Dialog` was moved to a web_editor/static/src/js/wysiwyg/plugin/link.js file/class. In 13.0 the 12.3 editor changes were mostly reverted in 35b61822a but part of the change of `Link Dialog` that was moved to another file/class was not moved back, thus: it does not work as expected => eg. if we add a link over an image, the image is removed. In this commit we get back the missing part as it was in 12.0 version. opw-2086444 closes #39858 closes odoo/odoo#39881 X-original-commit: 9996d04fd2ec8329cd5561a4bc94ccc35d529d93 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/editor')
-rw-r--r--addons/web_editor/static/src/js/editor/rte.summernote.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.summernote.js b/addons/web_editor/static/src/js/editor/rte.summernote.js
index cd8d75e91dd..e63d87e54b2 100644
--- a/addons/web_editor/static/src/js/editor/rte.summernote.js
+++ b/addons/web_editor/static/src/js/editor/rte.summernote.js
@@ -1247,6 +1247,7 @@ var SummernoteManager = Class.extend(mixins.EventDispatcherMixin, {
data.__alreadyDone = true;
var linkDialog = new weWidgets.LinkDialog(this,
data.options || {},
+ data.$editable,
data.linkInfo
);
if (data.onSave) {