diff --git a/lib/src/widgets/html_editor_widget_web.dart b/lib/src/widgets/html_editor_widget_web.dart index b82f949b..d987eb80 100644 --- a/lib/src/widgets/html_editor_widget_web.dart +++ b/lib/src/widgets/html_editor_widget_web.dart @@ -501,6 +501,7 @@ class _HtmlEditorWidgetWebState extends State { document.getElementsByClassName('note-editor')[0].addEventListener("dragover", function(event) { if (event.dataTransfer.types.includes("Files")) { event.preventDefault(); + window.parent.postMessage(JSON.stringify({"view": "$createdViewId", "type": "toDart: onDragEnter", "types": event.dataTransfer.types}), "*"); } });