change font-size to be a range input with quick example

This commit is contained in:
Víctor Losada Hernández
2026-09-23 23:59:23 +02:00
parent fc8c6d9955
commit 6ec10d6f6f
3 changed files with 7 additions and 16 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ const createSettingsExtensions = (settings)=>[
...(settings.fontSize
? [EditorView.theme({
'&, .cm-content' : {
fontSize : `${settings.fontSize}px`,
fontSize : `${settings.fontSize || 1}em`,
},
})]
: []),