diff --git a/ui/src/components/editor/DefaultEditor.vue b/ui/src/components/editor/DefaultEditor.vue index c71eda4cab..ab0e722e90 100644 --- a/ui/src/components/editor/DefaultEditor.vue +++ b/ui/src/components/editor/DefaultEditor.vue @@ -451,6 +451,13 @@ const currentLocale = i18n.global.locale.value as function onTitleInput(event: Event) { emit("update:title", (event.target as HTMLInputElement).value); } + +function handleFocusEditor(event) { + if (event.isComposing) { + return; + } + editor.value?.commands.focus("start"); +}