How to add async
command to Tiptap editor
#4825
-
I want to add an
Unfortunately
throws an error. What should I change? |
Beta Was this translation helpful? Give feedback.
Answered by
nperez0111
Sep 30, 2024
Replies: 2 comments 2 replies
-
Hello @piszczu4 ! Do you find a solution for this ? Thanks ! |
Beta Was this translation helpful? Give feedback.
1 reply
-
dispath not work,what can i do? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tiptap does not support async commands, since the transform they build via chaining is expected to be executed synchronously. If you need to do something async, you have that in your function, just cannot return the promise, only return
true
to indicate that it actually executed whatever action.Example: