froala / angular-froala-wysiwyg

Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
734 stars 201 forks source link

Cant drag a bmp or svg image file into the editor without page redirect #343

Open MrGrande opened 5 years ago

MrGrande commented 5 years ago

Hi,

drag n drop bmp image files has an big issue.

I have a list of allowed image file types. Upload validation of image files is working fine for all, but not for bmp images.

1) Select image via image upload button and windows file explorer --> error message is shown --> OK

2) Click on image upload button, drop zone popup is open --> dragnDrop a image from windows folder on the "drop image" zone --> error message is shown --> OK

3) DragnDrop the bmp image directly in to the editor content area--> browser redirects away from the current url and loads/shows the image in the current tab --> NOT OK

I could reproduce this issue only with bmp and svg files. It is easy to reproduce on the froala editor main page.

Just open the froala editor front page and drag a bmp image file directly into the editor. https://www.froala.com/wysiwyg-editor

Hope somebody got an idea for this issue...

Best regards, Asmo

MohandSadakah commented 6 months ago

(https://github.com/froala/angular-froala-wysiwyg/assets/47220452/3ed97eb9-04f7-4405-b27f-d478f6f78f3f)