How to understand the parameter typesAfter of the method Transform.split()?
I’ve defined the nodes of the dl-dt-dd tag. I want to create a dd node when the cursor is at the end of the dd node and press the Enter key.
I tried to assign parameter typeAfter to null, [null, {type: ddType}], [{type: ddType}] or [{type: ddType}, {type: ddType}]. However, it still create a new dt node unexpectedly.
I assign the content property of dl node’s schema to content: '(dt dd*)+ .
Is the dd node a textblock, or does it contain further block nodes? If it’s a textblock, I’d expect [{type: ddType}] to work.
(To make sure this isn’t an issue with content matching, have you checked whether parsing a document like <dl><dt>a</dt><dd>b</dd><dd>c</dd></dl> works?)
Interesting. Could you set up a minimal demo of the problem? (A schema with the definition list nodes + the command you wrote.) An easy way to do this would be to ‘remix’ the basic demo with glitch.