-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How to avoid pasting selected text from clipborad without images? #2719
Comments
It's not a easy thing. There won't be a simple way to deal with it. It would need to handle prosemirror. But I guess you can make an plugin for this issue. We did open plugin interface for keymap (#2647) |
You can add a hook and it will be called the hook when uploading or pasting this image to OSS. This is my code.
|
@williamsun1993 Thank you for your reply. It is seams like the way to upload image, but what I want is prevent pasting text from clipboard which maybe includes images. These images will be transformed to base64 encoding even doesn't trigger addImageBlobHook. |
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks! |
This issue will be closed due to inactivity. Thanks for your contribution! |
Summary
How to avoid pasting selected text from clipborad without images? Because images pasted from clipborad will become base64 encoding, but generally do not want the database to store base64 encoding images, so I hope to avoid pasting text exclude images.
Version
3.1.3
The text was updated successfully, but these errors were encountered: