mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: use monaco for yaml fields
This commit is contained in:
1 parent
b928ef5773
commit
9632b425d5
2 files changed
+2
-1
No files matched your search
@@ -31,6 +31,7 @@ export default class Editor extends DOMAttachedObject {
|
||||
super($dom);
|
||||
this.options = options;
|
||||
if (UserContext.preferredEditorType === 'monaco') this.initMonaco();
|
||||
else if (options.language && options.langua !== 'markdown') this.initMonaco();
|
||||
else this.initVditor();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user