customizable font family
This commit is contained in:
parent
8f6c1531fa
commit
ff99dbcd22
11 changed files with 25 additions and 15 deletions
|
|
@ -101,6 +101,7 @@ export default function CodeMirror({
|
|||
theme,
|
||||
keybindings,
|
||||
fontSize = 18,
|
||||
fontFamily = 'monospace',
|
||||
options,
|
||||
editorDidMount,
|
||||
}) {
|
||||
|
|
@ -135,7 +136,7 @@ export default function CodeMirror({
|
|||
return staticExtensions;
|
||||
}, [keybindings]);
|
||||
return (
|
||||
<div style={{ fontSize }} className="w-full">
|
||||
<div style={{ fontSize, fontFamily }} className="w-full">
|
||||
<_CodeMirror
|
||||
value={value}
|
||||
theme={theme || strudelTheme}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue