-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
粘贴时图片如何处理成url #260
Comments
Hi, I use the following code to work with pasting of images and files. The original code is pure js, so I just adapted the following code for the editor, putting it inside main.ts. The code needs to be revised for ts, but as it is it works. It is also already handling drag and drop events. Hope it helps you.
|
I hadn't noticed, but the editor already handles the paste event with images. I don't know if that's exactly what you wanted, anyway I leave the code in case someone wants to use it. |
在main.ts重写onpaste也覆盖不了插件里的_paste事件,会同时出现两个图片。我貌似找不到改变_paste的入口 |
What problem does this feature solve?
你好,麻烦问下
1.菜单栏的上传图片在onchange已处理,ctrl+v的时候,怎么处理图片为url呢。;
2.只读模式的时候,还能ctrl+v内容,在哪里禁用呢
What does the proposed API look like?
ctrl+v的时候,我的业务需要先调用上传接口,再用接口返回的url回显
The text was updated successfully, but these errors were encountered: