From 02c32a3eaac107a095968acd54e5d72766c23fe4 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Wed, 13 Sep 2017 00:15:35 +0530 Subject: [PATCH] set same theme on acss config codemirror --- src/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/script.js b/src/script.js index 518629e..c7d4eec 100644 --- a/src/script.js +++ b/src/script.js @@ -1690,6 +1690,10 @@ customEditorFontInput, cssSettingsModal, cssSettingsBtn, acssSettingsTextarea scope.cm[type].refresh(); }); scope.consoleCm.setOption('theme', $('[data-setting=editorTheme]').value); + scope.acssSettingsCm.setOption( + 'theme', + $('[data-setting=editorTheme]').value + ); if (prefs.autoSave) { if (!autoSaveInterval) { autoSaveInterval = setInterval(autoSaveLoop, AUTO_SAVE_INTERVAL); @@ -2296,7 +2300,7 @@ customEditorFontInput, cssSettingsModal, cssSettingsBtn, acssSettingsTextarea ); scope.acssSettingsCm = CodeMirror.fromTextArea(acssSettingsTextarea, { - mode: 'json' + mode: 'application/ld+json' }); scope.acssSettingsCm.on('blur', () => { scope.setPreviewContent(true);