[FIX] website: Selector for the image and table-handlers are still there even if we've deleted the snippet
This commit is contained in:
@@ -1944,16 +1944,19 @@
|
||||
}
|
||||
},
|
||||
|
||||
on_clone: function () {
|
||||
on_clone: function (event) {
|
||||
event.preventDefault();
|
||||
var $clone = this.$target.clone(false);
|
||||
this.$target.after($clone);
|
||||
for (var i in this.styles){
|
||||
this.styles[i].on_clone($clone);
|
||||
}
|
||||
this.BuildingBlock.create_overlay(this.$target);
|
||||
return false;
|
||||
},
|
||||
|
||||
on_remove: function () {
|
||||
on_remove: function (event) {
|
||||
event.preventDefault();
|
||||
this.on_blur();
|
||||
|
||||
this.BuildingBlock.parent.rte.historyRecordUndo(this.$target);
|
||||
@@ -1977,6 +1980,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
// clean editor if they are image or table in deleted content
|
||||
$(".note-control-selection").hide();
|
||||
$('.o_table_handler').remove();
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user