[英]How do you process input events from an IViewZone in the Monaco Editor?
[英]How do you retrieve a theme from the monaco editor?
基本上标题在问什么。 我知道monaco.editor.setTheme()
和.defineTheme()
存在,但是如何检索定义当前正在使用的主题的 JSON 或 object 或浏览器中其他存储主题的 JSON/对象?
更新:从 0.21.2 版开始,在 monaco-editor 中检索当前主题的非官方方式是editor._themeService._theme
注意:在 monaco-editor 版本 (0.21.2) 中, editor._themeService.getTheme()
会抛出错误。
Uncaught Error: editor._themeService.getTheme is not a function
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.