-
Notifications
You must be signed in to change notification settings - Fork 845
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
Feat: support for customize paste function #2156
Comments
Thank you for the report, do you want to customize how paste is handled in the editor in general? or do something when pasting an image? |
Yes! I want to customize how paste is handled in the editor in general! Because I want to handle some specific encoding formats, such as email, url, emoji and other formats! So that we can make full use of the powerful functions of flutter quill! ! I Hope this function can be added! Thank you very much! ! |
Once our clipboard platform implementation becomes stable (still in the early stage) and web common issues are fixed, we will start working on providing more API to customize the behavior and extend it further. Related #2230 |
Any progress? |
Fixed in the pre-release version ( |
@CatKevin Can you confirm whether the |
Dear Ellet,
Thank you for your reply!
However, I only see string2string and delta2delta related conversions. But we may copy a string with emojis somewhere (not in quill), such as "Hello[smile]Mike![cheer][cheer][cheer]", and users can copy and paste it on any APP without exposing the emoji protocol in this APP. After we paste this string in quill, we actually hope to parse the strings "[smile]" and "[cheer]" into corresponding emojis and display them in quill.
Therefore, I think we may also need a method to convert strings to Delta. Do you think so?
#2350 (comment)
Looking forward to your reply!
Best,
Kevin
|
Thanks for the suggestion, see #2350 (comment) |
Is there an existing issue for this?
Use case
I copied some content from another software that may contain some parsable emoji, but when I paste them into Quill Editor they can't parse the emoji using the custom parsing method.
Proposal
I found that there are onImagePaste and onGifPaste methods in QuillEditorConfigurations to handle the problem of pasting pictures. I wonder if there should be an onPaste method to handle the pasted content?
The text was updated successfully, but these errors were encountered: