Some wrapper framework of prosemirror may want to limit the schema groups. For example, in Milkdown, I expect everything under doc
should be block
.
I did add a hard coded block
into group
. I guess this should be good enough for almost all cases.
Hey @ocavue, just wanted to thank you for creating prosemirror-flat-list. It’s been a lot of help .
@ocavue : Tab seems to be still blocked . Are you planning to allow it . I tried tab on non list nodes as well in your example at https://prosemirror-flat-list.netlify.app/ but it doesnt allow.
By default, only Mod-[
and Mod-]
are used. You would need to add the binding for Tab
and Shift-Tab
yourself if you want. Here is an example: https://github.com/ocavue/prosemirror-flat-list/blob/b5f2400136a858f8ed5422216eef92328394c39c/packages/remirror-extension/src/extension.ts#L53-L61
I see that the provided example(https://github.com/ocavue/prosemirror-flat-list/blob/b5f2400136a858f8ed5422216eef92328394c39c/packages/remirror-extension/src/extension.ts#L53-L61) is based on remirror. does it also support prosemirror? Or does the native prosemirror version require modifications to the source code through hard coding?
It supports PM.
In the ProseMirror version, I didn’t see a method to override Mod-[
and Mod-]
using something similar to the createKeymap
found in the Remirror version. Therefore, I directly hard-coded the addition of Tab and Shift-Tab.
Hi. Did you manage to do it?