Skip to content

Commit bd2086f

Browse files
committed
fix(useEditorMethods): pass emitUpdate to setContent command
The default changed in Tiptap v3 from false to true. Signed-off-by: Jonas <jonas@freesources.org>
1 parent d0faf1b commit bd2086f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/composables/useEditorMethods.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const useEditorMethods = (editor: Editor) => {
2828
: `<pre>${escapeHtml(content)}</pre>`
2929
editor
3030
.chain()
31-
.setContent(html, addToHistory)
31+
.setContent(html, { emitUpdate: addToHistory })
3232
.command(({ tr }) => {
3333
tr.setMeta('addToHistory', addToHistory)
3434
return true

0 commit comments

Comments
 (0)