From c096d4fef7826eb0ef0d9aeefd424d08e6167629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnau=20G=C3=B3mez=20Farell?= Date: Wed, 4 Jun 2025 13:11:21 +0200 Subject: [PATCH] Update packages/core/src/commands/insertContentAt.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- packages/core/src/commands/insertContentAt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/commands/insertContentAt.ts b/packages/core/src/commands/insertContentAt.ts index 9e39fd226..c5aa7186f 100644 --- a/packages/core/src/commands/insertContentAt.ts +++ b/packages/core/src/commands/insertContentAt.ts @@ -91,7 +91,7 @@ export const insertContentAt: RawCommands['insertContentAt'] = (position, value, // If `emitContentError` is enabled, we want to check the content for errors // but ignore them (do not remove the invalid content from the document) - if (!options.errorOnInvalidContent && editor.options.enableContentCheck && editor.options.emitContentError) { + if (!options.errorOnInvalidContent && !editor.options.enableContentCheck && editor.options.emitContentError) { try { createNodeFromContent(value, editor.schema, { parseOptions,