-
-
Notifications
You must be signed in to change notification settings - Fork 528
feat: add undo
and redo
methods to editor API
#1592
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-docx-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! let's add to docs as well?
I can't find the right spot to put this. Block Manipulation? I feel like this would be in a reference instead or something |
public undo() { | ||
this._tiptapEditor.commands.undo(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not work with collaboration. Look into using the editor.exec API instead too
34844ec
to
4cc8daa
Compare
This adds
undo
andredo
commands onto the editor instance for ease of access