summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorGorash <chm@odoo.com>2019-09-18 12:19:13 +0000
committerDavid Monjoie <dmo@odoo.com>2019-09-19 07:40:47 +0000
commitfa6dcc7332d964e58aeb9ff6b71f5982f02fa9be (patch)
treea04885a7ce7430cf2f76244f5cc3970e9203eadb /addons/web_editor/static/src/js
parent42df7f84a432b3dcff45ea7ae0a6d4abf0aef90a (diff)
[FIX] web_editor: fix add/remove columns in table
closes odoo/odoo#37079 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/editor/rte.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.js b/addons/web_editor/static/src/js/editor/rte.js
index eecee43a5c6..529bf68887e 100644
--- a/addons/web_editor/static/src/js/editor/rte.js
+++ b/addons/web_editor/static/src/js/editor/rte.js
@@ -734,7 +734,7 @@ var RTEWidget = Widget.extend({
// selected too)
//
// The triple click behavior is reimplemented for all browsers here
- if (ev.originalEvent.detail === 3) {
+ if (ev.originalEvent && ev.originalEvent.detail === 3) {
// Select the whole content inside the deepest DOM element that was
// triple-clicked
range.create(ev.target, 0, ev.target, ev.target.childNodes.length).select();