mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-24 15:10:48 +08:00
fix(editor): initialize vditor after setup
This commit is contained in:
@@ -60,7 +60,10 @@ export default {
|
||||
'link',
|
||||
'image'
|
||||
],
|
||||
toolbarConfig: { pin: true }
|
||||
toolbarConfig: { pin: true },
|
||||
after() {
|
||||
vditorInstance.value = this
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -57,9 +57,11 @@ export default {
|
||||
cache: { enable: false },
|
||||
input(value) {
|
||||
emit('update:modelValue', value)
|
||||
},
|
||||
after() {
|
||||
vditorInstance.value.setValue(props.modelValue)
|
||||
}
|
||||
})
|
||||
vditorInstance.value.setValue(props.modelValue)
|
||||
})
|
||||
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user