Set node property for inputWidget as it's expected to contain input node

This commit is contained in:
Hadi Nategh
2021-10-13 15:36:33 +02:00
parent f454536165
commit b84ef08c29
2 changed files with 7 additions and 2 deletions

View File

@ -314,7 +314,7 @@ app.classes.mail = AppJS.extend(
{
textAreaWidget.tinymce.then(()=>{
that.compose_resizeHandler();
jQuery(textAreaWidget.editor.iframeElement.contentWindow.document).on('dragenter', function(){
if (textAreaWidget.editor) jQuery(textAreaWidget.editor.iframeElement.contentWindow.document).on('dragenter', function(){
// anything to bind on tinymce iframe
});
});