feat: focus editor on reply click (#434)
This commit is contained in:
parent
e4b7b8061a
commit
39ed6bffec
3 changed files with 17 additions and 1 deletions
|
@ -151,6 +151,12 @@ async function onDrop(files: File[] | null) {
|
|||
}
|
||||
|
||||
const { isOverDropZone } = useDropZone(dropZoneRef, onDrop)
|
||||
|
||||
defineExpose({
|
||||
focusEditor: () => {
|
||||
editor.value?.commands?.focus?.()
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue