NPellet / visualizer

Other
43 stars 24 forks source link

Double paste in quill problem #1150

Open lpatiny opened 2 years ago

lpatiny commented 2 years ago

When we paste an image in the quill module on

https://www.lactame.com/visualizer/src/index.html?config=../testcase/config/default.json&viewURL=../testcase/data/quill/view.json&dataURL=../testcase/data/quill/data.json

We have the image that is pasted twice.

If we disable the module imageDrop it works correctly.

https://github.com/NPellet/visualizer/blob/7264cd6edd1ca0511a5999ca1220b47f4b48ac21/src/modules/types/edition/quill_editor/view.js#L88-L89

There is another plugin: https://www.npmjs.com/package/quill-image-drop-and-paste that could be tested

https://github.com/NPellet/visualizer/blob/d00e4f45ae8677eaf60e4125d1af434b29cc64e3/package.json#L85-L86

@stropitek could you have a look at this ?