summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/lib/summernote/src/js
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2020-01-29 09:02:02 +0000
committerAntoine Prieels <anp@odoo.com>2020-01-29 10:55:53 +0000
commitb3661017d04cad3d9fc93c1d16ddb81e4744e603 (patch)
tree317030bc2cf3c182cb30549be46c8100b94329e1 /addons/web_editor/static/lib/summernote/src/js
parent2716e73864acdac2b5348a344ee0d89ca7107e25 (diff)
[FIX] web_editor: properly copy link URL
Avoid display errors with special characters when copying the href attribute of links in the web editor. opw-2078313 closes odoo/odoo#44176 X-original-commit: 19ebcdd20426406250174eb473b081a9e488e542 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js')
-rw-r--r--addons/web_editor/static/lib/summernote/src/js/module/Popover.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/lib/summernote/src/js/module/Popover.js b/addons/web_editor/static/lib/summernote/src/js/module/Popover.js
index f669569f6ba..00061f39848 100644
--- a/addons/web_editor/static/lib/summernote/src/js/module/Popover.js
+++ b/addons/web_editor/static/lib/summernote/src/js/module/Popover.js
@@ -69,7 +69,7 @@ define([
var $anchor = $linkPopover.find('a');
var href = $(styleInfo.anchor).attr('href');
var target = $(styleInfo.anchor).attr('target');
- $anchor.attr('href', href).html(href);
+ $anchor.attr('href', href).text(href);
if (!target) {
$anchor.removeAttr('target');
} else {