Skip to content

Diff view within BlockNote editorΒ #1464

@darshankapashi

Description

@darshankapashi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions