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);
|
super($dom);
|
||||||
this.options = options;
|
this.options = options;
|
||||||
if (UserContext.preferredEditorType === 'monaco') this.initMonaco();
|
if (UserContext.preferredEditorType === 'monaco') this.initMonaco();
|
||||||
|
else if (options.language && options.langua !== 'markdown') this.initMonaco();
|
||||||
else this.initVditor();
|
else this.initVditor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.8.8",
|
"version": "4.8.9",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user