Skip to content
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

[FR] Replace rich_clipboard with super clipboard with give ability to copy paste rich text as well as images #641

Open
alihassan143 opened this issue Jan 2, 2024 · 11 comments
Assignees

Comments

@alihassan143
Copy link
Contributor

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

@LucasXu0 LucasXu0 self-assigned this Jan 3, 2024
@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jan 3, 2024

@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

@alihassan143
Copy link
Contributor Author

@LucasXu0 instead of overriding we should add inside the editor for better support

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jan 5, 2024

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.

@alihassan143
Copy link
Contributor Author

super clipboard still uses rust code but it gets updated regularly

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jan 5, 2024

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.

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jan 5, 2024

Another solution is to move the custom copy/paste command from the AppFlowy repo to the appflowy_editor_plugins repo.

@alihassan143
Copy link
Contributor Author

to use super clipboard we don't need to install rust its comes with pre built library

@alihassan143
Copy link
Contributor Author

Another solution is to move the custom copy/paste command from the AppFlowy repo to the appflowy_editor_plugins repo.

that will work

@alihassan143
Copy link
Contributor Author

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

@asadamatic
Copy link

asadamatic commented Mar 7, 2024

Rich Clipboard has started to produce an after I upgraded the Android gradle files according to declarative apply of plugins.

BringingFire/rich_clipboard#25

@asadamatic
Copy link

rich_clipboard has been discontinue.
https://github.com/BringingFire/rich_clipboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants