Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the font size of the editor? #3

Closed
brendand opened this issue Jan 21, 2023 · 1 comment
Closed

How to change the font size of the editor? #3

brendand opened this issue Jan 21, 2023 · 1 comment

Comments

@brendand
Copy link

I've been researching the documentation and online examples of how to change the font size, but most of the information I can find is very old and applies to CodeMirror 5. I'm using this package with CodeMirror 6 now but cannot figure out how to provide the ability to dynamically change the font size. I want a font size slider to control the font size.

If I put a fontSize: 13pt; item into the baseTheme constant then I can see the new font size. But I want to make that dynamic.

Do you know how to do that?

@khoi
Copy link
Owner

khoi commented Jan 26, 2023

https://codemirror.net/examples/config/

Dynamic Configuration should be a good start

@khoi khoi closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants