mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
Update packages/core/src/commands/insertContentAt.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
42f719468b
commit
c096d4fef7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user