[FIX] website: editor wysiwyg must remove edition flags
html is undefined then the content are not replaced by the cleaned dom. Change the _onActivateSnippet method to fix the previous error generated by the dom uncleaned. Issue introduced by https://github.com/odoo/odoo/commit/2e8222dee737215cbad0dd3556d6ec0ffe60bf00#diff-0f47e7e6900726ed7c5d97ff649ae05bR228 closes odoo/odoo#34181 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -239,8 +239,8 @@ var WysiwygMultizone = Wysiwyg.extend({
|
||||
}
|
||||
var _super = this._super.bind(this);
|
||||
return this.savingMutex.lock.then(function () {
|
||||
return _super().then(function (_isDirty, html) {
|
||||
this._summernote.layoutInfo.editable.html(html);
|
||||
return _super().then(function (res) {
|
||||
this._summernote.layoutInfo.editable.html(res.html);
|
||||
|
||||
var $editable = this._getEditableArea();
|
||||
var $areaDirty = $editable.filter('.o_dirty');
|
||||
@@ -493,7 +493,7 @@ var WysiwygMultizone = Wysiwyg.extend({
|
||||
if (!$.contains(ev.data[0], this._focusedNode)) {
|
||||
this._focusedNode = ev.data[0];
|
||||
}
|
||||
ev.data.closest('.oe_structure > *:not(.o_fake_editable)').addClass('o_fake_editable').attr('contenteditable', true);
|
||||
ev.data.closest('.oe_structure > *:o_editable').addClass('o_fake_editable').attr('contenteditable', true);
|
||||
},
|
||||
/**
|
||||
* @override
|
||||
|
||||
Reference in New Issue
Block a user