I am attempting to upload an image using the html 5 drag and drop functionality. When I drop the image on the CodeMirror editor the content for the image seems to be added to the editable area - like the contents of the file are being dumped.
The screenshot below illustrates this - so how do I prevent this from happening? I am creating a simple example app that used CodeMirror with the MeteorJS framework. I can listen for and intercept drop events inside my template, but I don’t want it doing this.
The binary data check was only added in the very last version of CodeMirror (released two weeks ago), so yes, if you’re using an old version you’ll see this problem.