diff --git a/packages/core/src/commands/splitBlock.ts b/packages/core/src/commands/splitBlock.ts index af66133d736..2c1afcb5738 100644 --- a/packages/core/src/commands/splitBlock.ts +++ b/packages/core/src/commands/splitBlock.ts @@ -5,7 +5,7 @@ import { Command, RawCommands } from '../types' import getSplittedAttributes from '../helpers/getSplittedAttributes' function defaultBlockAt(match: ContentMatch) { - for (let i = 0; i < match.edgeCount; i + 1) { + for (let i = 0; i < match.edgeCount; i += 1) { const { type } = match.edge(i) if (type.isTextblock && !type.hasRequiredAttrs()) {