We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f75bd6e commit 061fd35Copy full SHA for 061fd35
src/commands.js
@@ -320,7 +320,7 @@ export function splitBlock(state, dispatch) {
320
tr.split(tr.mapping.map($from.pos), 1, types)
321
if (!atEnd && !$from.parentOffset && $from.parent.type != deflt) {
322
let first = tr.mapping.map($from.before()), $first = tr.doc.resolve(first)
323
- if ($from.parent.canReplaceWith($first.index(), $first.index() + 1, deflt))
+ if ($from.node(-1).canReplaceWith($first.index(), $first.index() + 1, deflt))
324
tr.setNodeMarkup(tr.mapping.map($from.before()), deflt)
325
}
326
0 commit comments