feat(default-editor): auto focus editor when document changed

This commit is contained in:
purocean
2022-11-29 09:50:26 +08:00
parent 0f180b2b06
commit d81968a12c
@@ -104,6 +104,11 @@ export default defineComponent({
getEditor().updateOptions({
readOnly: !current || !current.plain
})
if (getIsDefault()) {
await nextTick()
getEditor().focus()
}
}
function resize () {