froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 674 forks source link

Disable Drop Event not working in Firefox #3437

Open a-bit-too-literal opened 5 years ago

a-bit-too-literal commented 5 years ago

version: "angular-froala-wysiwyg": "^2.9.3"

The following code fragment disabled image drag-and-drop in chrome and IE but not in firefox:

editorOptions: any = {    
events: {
      'froalaEditor.initialized': function(e, editor) {
        editor.events.on('drop', function(dropEvent) {
          dropEvent.preventDefault();
        }, true);
      }
    }
}

No errors seen in console

stefanneculai commented 5 years ago

@a-bit-too-literal are you able to reproduce this in a jsFiddle too: https://jsfiddle.net/froala/wc5c3jhk/?

a-bit-too-literal commented 5 years ago

Apologies for the delay, I owe you an update on this.

I have tried to set up the same configuration in the jsfiddle you provide and was not able to reproduce the problem. However I can still see the issue in my application which uses the angular wrapper (angular-froala-wysiwyg).

As I don't seem to be able to create an angular fiddle, I've tried to reproduce the issue in stackblitz. But I'm afraid the configuration has defeated me for the time being. It seems as though the problem I'm hitting now is for another open bug unrelated to my original problem #257.

You can find this attempt here...hopefully it might help you diagnose one of the issues. :-)