-
-
Notifications
You must be signed in to change notification settings - Fork 930
希望粘贴网页图片、本地图片时可以触发 upload.handler() #469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
粘贴本地图片时也无法触发 upload.handler() |
粘贴的时候可以使用 linkToImgUrl |
我在写一个vscode插件,想用vditor替代内置的markdown编辑器。 |
This idea is for mobile. At the mobile, everybody is not typing. they just copy & paste. |
Currently only drag and drop image upload is supported. After Vanessa219/vditor#469 is resolved, support paste the picture onto the clipboard and upload it.
I think @TobiasTao wants to listen to the paste event and trigger |
I don't know what @TobiasTao exactly want , but I think he want |
I want: from |
handler 和 linkToImgUrl 的参数和返回值不一致,因此新加了一个 |
你在什么场景下需要该功能?
自定义upload逻辑:
现在,如果复制网页中的图片:


将其粘贴,那么这个路径是图片源连接:
自定义的handler() 未生效,希望粘贴网页图片时可以触发 upload.handler()
The text was updated successfully, but these errors were encountered: