There was an error while loading. Please reload this page.
emitUpdate
setContent
1 parent d0faf1b commit bd2086fCopy full SHA for bd2086f
1 file changed
src/composables/useEditorMethods.ts
@@ -28,7 +28,7 @@ export const useEditorMethods = (editor: Editor) => {
28
: `<pre>${escapeHtml(content)}</pre>`
29
editor
30
.chain()
31
- .setContent(html, addToHistory)
+ .setContent(html, { emitUpdate: addToHistory })
32
.command(({ tr }) => {
33
tr.setMeta('addToHistory', addToHistory)
34
return true
0 commit comments