I’m trying to achieve single level lists, as they are known from, for example, the macOS notes app. I’m using this approach:
nodes: addListNodes(schema.spec.nodes, "paragraph", "block"),
As you can see i’m using
"paragraph" instead of
"paragraph block+". However, with this configuration, the
joinBackward command doesn’t work. This can be seen when doing Backspace when the caret is placed at the beginning of a list item: instead of joining the item with previous, it selects previous.
The Backspace key is configured here. Internally, codeflow will end up here and return false, because
canJoin() returns false: the default implementation is trying to join the paragraph of one item into the surrounding block of the previous item, which, according to my schema definition, is not allowed.
So what should happen is, that it directly joins the two paragraphs together, creating a single paragraph - however, it looks like the default implementation doesn’t handle that right now.