mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: feat: enhanced system settings (beta)
This commit is contained in:
1 parent
f01a8d378e
commit
cfdf9fe7a4
9 files changed
+220
-5
No files matched your search
@@ -5,7 +5,10 @@ import CmEditor from '.';
|
||||
function runSubstitute($container: JQuery<Document | HTMLElement>) {
|
||||
for (const language of ['markdown', 'yaml', 'json', 'plain']) {
|
||||
$container.find(`textarea[data-${language}]`).get().forEach((element) => {
|
||||
CmEditor.getOrConstruct($(element), { language });
|
||||
const config: any = { language };
|
||||
if ($(element).data('model')) config.model = $(element).data('model');
|
||||
if ($(element).data('hide')) config.hide = $(element).data('hide');
|
||||
CmEditor.getOrConstruct($(element), config);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user