[英]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.