In the example below we try out a heading command.
To get access to
state, dispatch, you can save the editor in your applications state management and access it like this:
💡 Bangle will always export a higher order function which returns a command.
📖 API docs for commands.
📖 Please read the Prosemirror guide on commands for more details.