Samuel HyunGyu Kim
Samuel HyunGyu Kim

Reputation: 23

Drag & Drop Event in Quilljs

I'm fairly new at Quill.

I want to make a custom module or extended function that handles drag and drop event. I want to detect the dropped text, and if it's an image url, I want to insert 'img' tag instead of 'a' tag.

Currently, Quill is adding 'a' tag for dropped url, but I cannot find related code.

Upvotes: 2

Views: 3068

Answers (1)

jhchen
jhchen

Reputation: 14767

There's no special handling for drag and drop at the moment. What you're seeing is simply native browser behavior.

Upvotes: 3

Related Questions