appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

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

Open alihassan143 opened this issue 1 year ago • 11 comments

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 avatar Jan 02 '24 12:01 alihassan143

@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 avatar Jan 03 '24 12:01 LucasXu0

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

alihassan143 avatar Jan 04 '24 06:01 alihassan143

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.

LucasXu0 avatar Jan 05 '24 07:01 LucasXu0

super clipboard still uses rust code but it gets updated regularly

alihassan143 avatar Jan 05 '24 07:01 alihassan143

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 avatar Jan 05 '24 07:01 LucasXu0

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

LucasXu0 avatar Jan 05 '24 07:01 LucasXu0

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

alihassan143 avatar Jan 05 '24 07:01 alihassan143

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

that will work

alihassan143 avatar Jan 05 '24 07:01 alihassan143

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

alihassan143 avatar Jan 05 '24 07:01 alihassan143

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

asadamatic avatar Mar 07 '24 05:03 asadamatic

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

asadamatic avatar Mar 11 '24 11:03 asadamatic