Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Jun 25, 2024
1 parent be8ad4d commit beb8f05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/commands/setContent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Fragment, Node as ProseMirrorNode, ParseOptions } from '@tiptap/pm/model'
import { ParseOptions } from '@tiptap/pm/model'

import { createDocument } from '../helpers/createDocument.js'
import { Content, RawCommands } from '../types.js'
Expand Down Expand Up @@ -69,6 +69,9 @@ export const setContent: RawCommands['setContent'] = (content, emitUpdate = fals
return commands.insertContentAt(
{ from: 0, to: doc.content.size },
content,
{ parseOptions },
{
parseOptions,
errorOnInvalidContent: options.errorOnInvalidContent ?? editor.options.enableContentCheck,
},
)
}

0 comments on commit beb8f05

Please sign in to comment.