diff --git a/packages/core/src/commands/insertContentAt.ts b/packages/core/src/commands/insertContentAt.ts index ba84b50d1..d94a88e40 100644 --- a/packages/core/src/commands/insertContentAt.ts +++ b/packages/core/src/commands/insertContentAt.ts @@ -59,6 +59,9 @@ export const insertContentAt: RawCommands['insertContentAt'] = (position, value, : [content] nodes.forEach(node => { + // check if added node is valid + node.check() + isOnlyBlockContent = isOnlyBlockContent ? node.isBlock : false