summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/summernote.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-03-24 16:53:45 +0100
committerChristophe Simonis <chs@odoo.com>2016-03-24 16:53:45 +0100
commitddb0fb273982399f7618a017eeb81d6a5253575a (patch)
treef62aea4a3888d45e8bfe0f17baeb4ab9d0b47f41 /addons/web_editor/static/src/js/summernote.js
parentd8137d35b7cc30df258fc310074eca3bfd88ec7a (diff)
parent59d3f63c58b47dfc1991494f167216cc1d9a9469 (diff)
[MERGE] forward port of branch saas-9 up to 59d3f63
Diffstat (limited to 'addons/web_editor/static/src/js/summernote.js')
-rw-r--r--addons/web_editor/static/src/js/summernote.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/summernote.js b/addons/web_editor/static/src/js/summernote.js
index 5c9e86dc8df..6fbfc69c234 100644
--- a/addons/web_editor/static/src/js/summernote.js
+++ b/addons/web_editor/static/src/js/summernote.js
@@ -1062,8 +1062,8 @@ $.summernote.pluginEvents.enter = function (event, editor, layoutInfo) {
}
}
+ var node = dom.node(r.sc);
var exist = r.sc.childNodes[r.so] || r.sc;
- var node = dom.node(exist);
exist = dom.isVisibleText(exist) || dom.isBR(exist) ? exist : dom.hasContentAfter(exist) || (dom.hasContentBefore(exist) || exist);
// table: add a tr