This commit is contained in:
Van 2014-12-01 15:25:21 +08:00
parent 5962faf21c
commit 65adc14324
1 changed files with 6 additions and 3 deletions

View File

@ -369,8 +369,8 @@ var menu = {
$editorFontFamily = $dialogPreference.find("input[name=editorFontFamily]"), $editorFontFamily = $dialogPreference.find("input[name=editorFontFamily]"),
$editorFontSize = $dialogPreference.find("input[name=editorFontSize]"), $editorFontSize = $dialogPreference.find("input[name=editorFontSize]"),
$editorLineHeight = $dialogPreference.find("input[name=editorLineHeight]"), $editorLineHeight = $dialogPreference.find("input[name=editorLineHeight]"),
$editorTheme = $dialogPreference.find("input[name=editorTheme]"); $editorTheme = $dialogPreference.find("input[name=editorTheme]"),
$editorTabSize = $dialogPreference.find("input[name=editorTabSize]"); $editorTabSize = $dialogPreference.find("input[name=editorTabSize]");
$.extend(request, { $.extend(request, {
"fontFamily": $fontFamily.val(), "fontFamily": $fontFamily.val(),
@ -414,7 +414,10 @@ var menu = {
$("#themesLink").attr("href", config.staticServer + '/static/css/themes/' + $theme.val() + '.css'); $("#themesLink").attr("href", config.staticServer + '/static/css/themes/' + $theme.val() + '.css');
wide.curEditor.setOption("theme", $editorTheme.val()); config.editorTheme = $editorTheme.val();
for (var i = 0, ii = editors.data.length; i < ii; i++) {
editors.data[i].editor.setOption("theme", $editorTheme.val());
}
} }
}); });
} }