mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 04:19:02 +08:00
fix: use shallowRef on Editor (#1804)
This commit is contained in:
parent
96a7310b9d
commit
46701fde66
@ -1,9 +1,9 @@
|
||||
import { onMounted, onBeforeUnmount, ref } from 'vue'
|
||||
import { onMounted, onBeforeUnmount, shallowRef } from 'vue'
|
||||
import { EditorOptions } from '@tiptap/core'
|
||||
import { Editor } from './Editor'
|
||||
|
||||
export const useEditor = (options: Partial<EditorOptions> = {}) => {
|
||||
const editor = ref<Editor>()
|
||||
const editor = shallowRef<Editor>()
|
||||
|
||||
onMounted(() => {
|
||||
editor.value = new Editor(options)
|
||||
|
Loading…
Reference in New Issue
Block a user