Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rte.on('dialogShow', e => {
const editorEls = grapesjs.$('.cke_dialog_background_cover, .cke_dialog');
['off', 'on'].forEach(m => editorEls[m]('mousedown', stopPropagation));
});