简体   繁体   English

Quilljs中的拖放事件

[英]Drag & Drop Event in Quilljs

I'm fairly new at Quill. 我在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. 我想检测到放置的文本,如果它是图像URL,我想插入“ img”标签而不是“ a”标签。

Currently, Quill is adding 'a' tag for dropped url, but I cannot find related code. 目前,Quill为删除的网址添加了“ a”标签,但我找不到相关代码。

There's no special handling for drag and drop at the moment. 目前,尚无针对拖放的特殊处理。 What you're seeing is simply native browser behavior. 您看到的只是本机浏览器的行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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