You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After clicking the toolbar style buttons (bold, italics, etc) the button is left focused and pressing any key will not result in writing. The fix is simple: in each of your extensions file, redefine the action to chain the focus command:
Instead of action: () => editor.commands.toggleBold(),
Use action: () => editor.chain().focus().toggleBold().run(),
Note this is the way it is done in all the official examples in the tiptap webpage (1). Sorry I don't have the time to submit a PR.
After clicking the toolbar style buttons (bold, italics, etc) the button is left focused and pressing any key will not result in writing. The fix is simple: in each of your extensions file, redefine the action to chain the focus command:
Instead of
action: () => editor.commands.toggleBold(),
Use
action: () => editor.chain().focus().toggleBold().run(),
Note this is the way it is done in all the official examples in the tiptap webpage (1). Sorry I don't have the time to submit a PR.
The text was updated successfully, but these errors were encountered: