ui: use monaco for yaml fields

This commit is contained in:
undefined committed 2021-05-12 12:34:09 +08:00
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();
}