We need to check the selection on click in the editor's document so as to update the visibility of the toolbar (we want to hide it if the selection is in a non-editable area). When the editor was in an iframe however, the wrong document was targeted: we want to check on clicks in the editor's document, not the top document. closes odoo/odoo#69775 X-original-commit: b0429c96e30751390991a9471a4c031dfed98d81 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>