summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/summernote.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/src/js/summernote.js')
-rw-r--r--addons/website/static/src/js/summernote.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website/static/src/js/summernote.js b/addons/website/static/src/js/summernote.js
index 83c9b519ace..616f96be5c3 100644
--- a/addons/website/static/src/js/summernote.js
+++ b/addons/website/static/src/js/summernote.js
@@ -2051,9 +2051,9 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor)
});
var $table = $(table);
- $dels.on('mousedown', function (event) {
+ $dels.data('table', table).on('mousedown', function (event) {
var td = $(this).data('td');
- $(td).closest('.note-editable').data('NoteHistory').recordUndo($editable);
+ $editable.data('NoteHistory').recordUndo($editable);
var newTd;
if ($(td).siblings().length) {
@@ -2076,9 +2076,9 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor)
range.create(newTd[0], 0, newTd[0], 0).select();
newTd.trigger('mouseup');
});
- $adds.on('mousedown', function (event) {
+ $adds.data('table', table).on('mousedown', function (event) {
var td = $(this).data('td');
- $(td).closest('.note-editable').data('NoteHistory').recordUndo($editable);
+ $editable.data('NoteHistory').recordUndo($editable);
var newTd;
if (td) {