diff options
| author | Gorash <chm@odoo.com> | 2019-09-18 11:00:14 +0000 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2019-09-19 07:40:46 +0000 |
| commit | f7c2cb088c2be1dbf5c85b3a47a77be68fb0ea84 (patch) | |
| tree | bcee16b16b18f7e3adf087f932e44d8e054ab021 /addons/web_editor | |
| parent | 175c75b9b5479834fdbb4693ebdc5be2d215529a (diff) | |
[FIX] web_editor: fix link style being lost on edit
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/rte.summernote.js | 3 |
1 files changed, 3 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 b5b74f64466..95ce86572ae 100644 --- a/addons/web_editor/static/src/js/editor/rte.summernote.js +++ b/addons/web_editor/static/src/js/editor/rte.summernote.js @@ -452,6 +452,9 @@ eventHandler.modules.linkDialog.showLinkDialog = function ($editable, $dialog, l $editable.data('range').select(); $editable.data('NoteHistory').recordUndo(); + var link = linkInfo.range.commonAncestor().closest('a'); + linkInfo.className = link && link.className; + var def = new $.Deferred(); core.bus.trigger('link_dialog_demand', { $editable: $editable, |
