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

Diff view within BlockNote editor #1464

Open
darshankapashi opened this issue Feb 25, 2025 · 2 comments
Open

Diff view within BlockNote editor #1464

darshankapashi opened this issue Feb 25, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@darshankapashi
Copy link

Is your feature request related to a problem? Please describe.
I have documentation and I want to update it from time to time. When I create a new version, I want to provide a way for my team to review the changes. So imagine a git diff review view but for BlockNote.

Describe the solution you'd like
As part of the editor, I want to introduce special markers which can be "accepted" or "rejected", similar to git diff review. When selected, it will add/remove that block. Blocks need to be clubbed, i.e. the insertion is grouped with the removal so selecting "accept" on the insertion block should also remove the deletion block.

Describe alternatives you've considered
I tried implementing it via splitting content into individual entries. This may work for paragraph, but doesn't for codeblocks (it doesn't like "styles") and so I can't highlight the background as green or red. Also, its unclear how I'd add the buttons to accept & reject.

@darshankapashi darshankapashi added the enhancement New feature or request label Feb 25, 2025
@joaoxbarbosa
Copy link

This is really cool. I imagine it would also work amazingly with the comments system @YousefED is working on. It would be kind of like the Google Docs comment mode?

@darshankapashi
Copy link
Author

Thats interesting. With AI functionality, there's an increasing need to attach some controls to each block. For example "edit with ai" where you can give a refinement prompt or say "shorten" on a paragraph. You could do it through the left side menu but not sure how text input would look. If this can be supported natively/extensibly that would unlock lot of opportunities.

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