Other variants of `exitCode`?

Hey, I’m trying to add a keyword shortcut to exit out of a custom node with Enter. I notices there is such a command called exitCode but unfortunately it’s only for code blocks. I’ve tested a copy-pasted version of exitCode with slight changes and It works for me. The logic that I need is exactly the same.

Can we officially have other variants of exitCode for other node types? for example exitBlockquote. Or even a more generic version of that, let’s say exitNode

Since these are not part of typical editing interfaces, and pretty easy to implement, I think they are too specific to include in the core distribution.

1 Like