From 71f9378d3523114348830926aaf8a15aa1d30eb5 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 16 Dec 2022 10:40:08 -0800 Subject: [PATCH] fix: insert into correct textarea --- package.json | 2 +- packages/client/src/components/MkMediaCaption.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9c7e1c345..50224a089 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "13.0.2", + "version": "13.0.3", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/components/MkMediaCaption.vue b/packages/client/src/components/MkMediaCaption.vue index 780f9c0f2..ff195974a 100644 --- a/packages/client/src/components/MkMediaCaption.vue +++ b/packages/client/src/components/MkMediaCaption.vue @@ -148,7 +148,7 @@ export default defineComponent({ os.api('drive/files/caption-image', { url: img.src, }).then(text => { - insertTextAtCursor(text.slice(0, (512 - ta.value.length))); + insertTextAtCursor(ta, text.slice(0, (512 - ta.value.length))); }); }, },