Set back focus to the first field in form

This commit is contained in:
Hadi Nategh
2022-05-04 14:14:48 +02:00
parent 9cdfc93a52
commit eecad5f70f
2 changed files with 23 additions and 16 deletions

View File

@@ -301,6 +301,8 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable
jQuery(self.editor.iframeElement.contentWindow.document).on('dragenter', function(){
if (jQuery('#dragover-tinymce').length < 1) jQuery("<style id='dragover-tinymce'>.dragover:after {height:calc(100% - "+jQuery(this).height()+"px) !important;}</style>").appendTo('head');
});
//set back focus to the first field in the form
self.getInstanceManager().focusOnFirstInput();
}
});
}