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

View and Edit at the Same Time #145

Open
thomastthai opened this issue Dec 16, 2023 · 4 comments
Open

View and Edit at the Same Time #145

thomastthai opened this issue Dec 16, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@thomastthai
Copy link

thomastthai commented Dec 16, 2023

Currently, there is either edit mode or view mode. That's typical for how markdown editors and viewers work. How would we combine them in a hybrid edit mode?

In hybrid-edit mode, the entire document would be in view mode with the exception of the block or paragraph the cursor is on—that would be in hybrid-edit mode.

Have a setting to configure for edit or hybrid-edit mode.

There would still be a view/edit button.

@thomastthai thomastthai added the enhancement New feature or request label Dec 16, 2023
@asjqkkkk
Copy link
Owner

Hi @thomastthai, this sounds like a Markdown rich text editor, which is quite complex. Currently, there is no available spare time to work on this, and there isn't a good idea on how to implement it at the moment. Perhaps it could be considered in the future, but before that, there needs to be a clear plan on how to approach the implementation before starting the work.

@thomastthai
Copy link
Author

About a year ago, I looked at many Markdown editors for Flutter. I couldn't find any with that capability. There were a few using Javascript though.

@asjqkkkk
Copy link
Owner

Hi @thomastthai , you can have a look with https://pub.dev/packages/flutter_quill and https://github.com/AppFlowy-IO/appflowy-editor
At the same time, I am currently attempting to implement a rich text editor. I have completed some preliminary validation work, and if everything goes smoothly, I will proceed to develop a fully functional version. However, this may take a considerable amount of time.

@thomastthai
Copy link
Author

thomastthai commented Jan 20, 2024

Hi @asjqkkkk! I have checked out flutter_quill. Super Editor is the only Flutter package that I found that can handle custom block types for that hybrid view/edit mode simultaneously. Unlike what the name says, it's actually a toolkit that can be used to build a rich-text editor.

They developed their own custom text widgets to handle various cases. Their WYSIWYG document serializes to Markdown. That can be challenging for users who want to keep their original version of their Markdown document.

Perhaps that package could be building blocks for your own rich-text editor and save you development time.

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

No branches or pull requests

2 participants