+
({
const latex = ref('')
const toolbarState = ref<'symbol' | 'formula'>('symbol')
-const textAreaRef = ref()
+const textAreaRef = ref>()
const selectedSymbolKey = ref(SYMBOL_LIST[0].type)
const symbolPool = computed(() => {
diff --git a/src/components/TextArea.vue b/src/components/TextArea.vue
index cab78abb..0d50897e 100644
--- a/src/components/TextArea.vue
+++ b/src/components/TextArea.vue
@@ -5,6 +5,7 @@
'disabled': disabled,
'resizable': resizable,
}"
+ ref="textareaRef"
:disabled="disabled"
:value="value"
:rows="rows"
@@ -14,6 +15,8 @@