From 899eee80a9489389747f64c46be6e80504520c2f Mon Sep 17 00:00:00 2001 From: hllshiro <40970081+hllshiro@users.noreply.github.com> Date: Fri, 1 Aug 2025 11:43:21 +0800 Subject: [PATCH] fix: set editor content and focus on end when updating text --- src/renderer/src/components/ChatInput.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/src/components/ChatInput.vue b/src/renderer/src/components/ChatInput.vue index 2775f98d3..5eb64397e 100644 --- a/src/renderer/src/components/ChatInput.vue +++ b/src/renderer/src/components/ChatInput.vue @@ -1021,6 +1021,7 @@ function onKeydown(e: KeyboardEvent) { defineExpose({ setText: (text: string) => { inputText.value = text + editor.chain().setContent(text).focus('end').run() } })