diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-06-14 18:05:38 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-06-14 18:05:38 +0200 |
| commit | 803df909b1b35441450e02e65008559200d1a2e7 (patch) | |
| tree | 5768bd60557bb25cfcb3cd7000df673387bf48e2 /addons/web_editor/static/lib/summernote/src/js | |
| parent | bdd051bf78254ca9e3b72f8530c1ecf505040cab (diff) | |
| parent | 804d68efe540c5ad121e811258a7fe11a29bdf56 (diff) | |
[MERGE] forward port branch saas-14 up to 804d68efe54
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js')
| -rw-r--r-- | addons/web_editor/static/lib/summernote/src/js/module/Editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/lib/summernote/src/js/module/Editor.js b/addons/web_editor/static/lib/summernote/src/js/module/Editor.js index b7ba30bfcd1..99947c346cf 100644 --- a/addons/web_editor/static/lib/summernote/src/js/module/Editor.js +++ b/addons/web_editor/static/lib/summernote/src/js/module/Editor.js @@ -628,9 +628,9 @@ define([ } var anchors = []; - // ODOO: adding this branch to modify existing anchor + // ODOO: adding this branch to modify existing anchor if it fully contains the range var ancestor_anchor = dom.ancestor(rng.sc, dom.isAnchor); - if(ancestor_anchor) { + if(ancestor_anchor && ancestor_anchor === dom.ancestor(rng.ec, dom.isAnchor)) { anchors.push($(ancestor_anchor).html(linkText).get(0)); } else if (isTextChanged) { // Create a new link when text changed. |
