When I press enter by having the cursor between Prose and Mirror in the following text, it is not working.
<p>Hello <span>ProseMirror</span>!</p>
The issue is with the span node. Without the span node, the enter key works as expected. I am facing a similar problem with other nodes, such as the one for the sub tag, using the configuration above.
Is it not possible to split such inline tags, or am I missing something? Or do we need to write custom code for it?
The built-in commands don’t handle inline nodes with content very well. You’ll often have to provide your own custom commands. This patch extends splitBlock to be a bit more clever about wrapping inline nodes.