简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM