mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 18:16:19 +02:00
set same theme on acss config codemirror
This commit is contained in:
@ -1690,6 +1690,10 @@ customEditorFontInput, cssSettingsModal, cssSettingsBtn, acssSettingsTextarea
|
|||||||
scope.cm[type].refresh();
|
scope.cm[type].refresh();
|
||||||
});
|
});
|
||||||
scope.consoleCm.setOption('theme', $('[data-setting=editorTheme]').value);
|
scope.consoleCm.setOption('theme', $('[data-setting=editorTheme]').value);
|
||||||
|
scope.acssSettingsCm.setOption(
|
||||||
|
'theme',
|
||||||
|
$('[data-setting=editorTheme]').value
|
||||||
|
);
|
||||||
if (prefs.autoSave) {
|
if (prefs.autoSave) {
|
||||||
if (!autoSaveInterval) {
|
if (!autoSaveInterval) {
|
||||||
autoSaveInterval = setInterval(autoSaveLoop, AUTO_SAVE_INTERVAL);
|
autoSaveInterval = setInterval(autoSaveLoop, AUTO_SAVE_INTERVAL);
|
||||||
@ -2296,7 +2300,7 @@ customEditorFontInput, cssSettingsModal, cssSettingsBtn, acssSettingsTextarea
|
|||||||
);
|
);
|
||||||
|
|
||||||
scope.acssSettingsCm = CodeMirror.fromTextArea(acssSettingsTextarea, {
|
scope.acssSettingsCm = CodeMirror.fromTextArea(acssSettingsTextarea, {
|
||||||
mode: 'json'
|
mode: 'application/ld+json'
|
||||||
});
|
});
|
||||||
scope.acssSettingsCm.on('blur', () => {
|
scope.acssSettingsCm.on('blur', () => {
|
||||||
scope.setPreviewContent(true);
|
scope.setPreviewContent(true);
|
||||||
|
Reference in New Issue
Block a user