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
Expose EditorZoom (used by ctrl + mouse wheel) in api #196
Comments
ctrl + mouse scroll simply updates the |
Great! Would onDidLayoutChange be the best handler to store the font size when it is updated by a ctrl+scroll zoom in/out ? |
I think there might be a bug here. If I zoom in using Ctrl+Scroll it updates the fontSize but does not reset the zoomLevel when I'm done, so if I then call updateOptions with a specific font size, it is multiplied by the zoomLevel in computeInternalOptions: Is there some way to reset the zoom level, that could be a possible workaround. |
I'm sorry, at this time, there's no API exposed to |
@samelhusseini: |
Version 0.6.1 of the editor allows us to Ctrl+MouseScroll to zoom in/out.
Is there a way to programmatically zoom in the editor, so as to bind the keys (CtrlCmd + NUMPAD_ADD) with the editor zoom action?
Also, is there a way to get the current zoom level, so we can store it between sessions?
monaco-editor npm version: 0.6.1
Browser: Chrome
OS: Windows
The text was updated successfully, but these errors were encountered: