mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: allow direct edit file
This commit is contained in:
1 parent
33211aa7dc
commit
30cad9b80e
7 files changed
+100
-33
No files matched your search
@@ -9,6 +9,9 @@ function runSubstitute($container) {
|
||||
$container.find('textarea[data-yaml]').get().forEach((element) => {
|
||||
CmEditor.getOrConstruct($(element), { language: 'yaml' });
|
||||
});
|
||||
$container.find('textarea[data-plain]').get().forEach((element) => {
|
||||
CmEditor.getOrConstruct($(element), { language: 'plain' });
|
||||
});
|
||||
}
|
||||
|
||||
const cmEditorPage = new AutoloadPage('cmEditorPage', () => {
|
||||
|
||||
Reference in new issue
Block a user