Closed vladnicula closed 7 months ago
plugins: [
keymap({
'Mod-z': undo,
'Mod-y': redo,
'Mod-Shift-z': redo,
}),
keymap(baseKeymap),
history(),
],
should have been defined in the state, not the editor. Found this by looking at the example https://prosemirror.net/examples/basic/.
I'm new, and am attempting to run a basic example using a nextjs page bellow:
I am getting an error which I cannot see any info about by googling, GPT-ing or stackoverflowing it:
Plugins passed directly to the view must not have a state component
Any tips, links to docs where I can read about this, or how to tackle it would be great.
Commenting out the
history()
call prevent the error, but I need undo/redo.Thanks!