mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-22 13:28:05 +08:00
fix: can not change font and font size of editor #125
This commit is contained in:
parent
a2336b4fc8
commit
9564272fd8
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user