From 139763649541afa562bde55d3e7e1d09807f4831 Mon Sep 17 00:00:00 2001 From: Tom Locke Date: Thu, 25 Nov 2021 12:15:15 +0000 Subject: [PATCH] Support spec.keepAdjacent in joinForwards and joinBackwards --- src/commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.js b/src/commands.js index 82f11a5..aab49d2 100644 --- a/src/commands.js +++ b/src/commands.js @@ -385,6 +385,7 @@ function deleteBarrier(state, $cut, dispatch) { let canDelAfter = $cut.parent.canReplace($cut.index(), $cut.index() + 1) if (canDelAfter && + !before.type.spec.keepAdjacent && (conn = (match = before.contentMatchAt(before.childCount)).findWrapping(after.type)) && match.matchType(conn[0] || after.type).validEnd) { if (dispatch) {