[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:
Benoit Socias
2023-09-20 13:03:12 +00:00
parent d8931675f4
commit e2905c4cfd
@@ -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');
},
//--------------------------------------------------------------------------