mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 优化系统设置页面
This commit is contained in:
1 parent
29c8fded62
commit
03cddc00b2
7 files changed
+26
-14
No files matched your search
@@ -3,10 +3,12 @@ import delay from 'vj/utils/delay';
|
||||
import CmEditor from '.';
|
||||
|
||||
function runSubstitute($container) {
|
||||
const selector = ['textarea[data-markdown]'];
|
||||
$container.find(selector.join(', ')).get().forEach((element) => {
|
||||
$container.find('textarea[data-markdown]').get().forEach((element) => {
|
||||
CmEditor.getOrConstruct($(element));
|
||||
});
|
||||
$container.find('textarea[data-yaml]').get().forEach((element) => {
|
||||
CmEditor.getOrConstruct($(element), { language: 'yaml' });
|
||||
});
|
||||
}
|
||||
|
||||
const cmEditorPage = new AutoloadPage('cmEditorPage', () => {
|
||||
|
||||
Reference in new issue
Block a user