appflowy-editor
appflowy-editor copied to clipboard
[FR] Replace rich_clipboard with super clipboard with give ability to copy paste rich text as well as images
Description
Rich clipboard is good package but its not updated for a while i think we need to implement super_clipboard that provide us more flexibility
Impact
this make our app to copy paste images on all platforms
Additional Context
No response
@alihassan143 You can override the copy and paste function to archive it. I integrated the super_clipboard in the AppFlowy repo.
https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart
@LucasXu0 instead of overriding we should add inside the editor for better support
The super_clipboard previously depended on Rust code (I'm not sure about the current situation). That's why I prefer not to import it into this repository.
super clipboard still uses rust code but it gets updated regularly
I don't want other Flutter developers to have to install Rust before using appflowy_editor. I used the super_clipboard in AppFlowy repo because it depended on Rust already.
Another solution is to move the custom copy/paste command from the AppFlowy repo to the appflowy_editor_plugins repo.
to use super clipboard we don't need to install rust its comes with pre built library
Another solution is to move the custom copy/paste command from the AppFlowy repo to the appflowy_editor_plugins repo.
that will work
but my suggestion would to add inside editor so we can optimize editor to add video and images from file binary or file type support
Rich Clipboard has started to produce an after I upgraded the Android gradle files according to declarative apply of plugins.
https://github.com/BringingFire/rich_clipboard/issues/25
rich_clipboard
has been discontinue.
https://github.com/BringingFire/rich_clipboard