[FIX] website_blog: locate tweet and comment elements within iframe
Since the website page preview is within an iframe, the selector used to neutralize some events during edition of blog pages were not targetting the elements anymore. This commit makes the elements looked up within the iframe. opw-3450880 Part-of: odoo/odoo#135980
This commit is contained in:
@@ -16,7 +16,7 @@ patch(WysiwygAdapterComponent.prototype, {
|
||||
*/
|
||||
async startEdition() {
|
||||
await super.startEdition(...arguments);
|
||||
$('.js_tweet, .js_comment').off('mouseup').trigger('mousedown');
|
||||
this.options.document.defaultView.$('.js_tweet, .js_comment').off('mouseup').trigger('mousedown');
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user