From 9564272fd8b5c3133c026112fee5d6b38fb9cf1b Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:08:24 +0800 Subject: [PATCH] fix: can not change font and font size of editor #125 --- frontend/src/components/content_value/ContentEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/content_value/ContentEditor.vue b/frontend/src/components/content_value/ContentEditor.vue index e769efe..5c0da2f 100644 --- a/frontend/src/components/content_value/ContentEditor.vue +++ b/frontend/src/components/content_value/ContentEditor.vue @@ -58,7 +58,7 @@ const readonlyValue = computed(() => { const pref = usePreferencesStore() onMounted(async () => { if (editorRef.value != null) { - const { fontSize, fontFamily = undefined } = pref.generalFont + const { fontSize, fontFamily = undefined } = pref.editorFont editorNode = monaco.editor.create(editorRef.value, { // value: props.content, theme: pref.isDark ? 'rdm-dark' : 'rdm-light',