fixes keyboard shortcuts in admin when modifying js or css files

This commit is contained in:
niphlod
2013-09-15 11:23:58 +02:00
parent b0f6dc4e16
commit 3c8e7a1364
@@ -79,8 +79,8 @@
return marker; return marker;
} }
{{if filetype=='html':}} {{if filetype in ('html', 'js', 'css'):}}
// must be here or break emmet/zencoding for html // must be here or break emmet/zencoding
CodeMirror.defaults.extraKeys["Ctrl-S"] = CodeMirror.defaults.extraKeys["Ctrl-S"] =
function(instance) { function(instance) {
doClickSave();}; doClickSave();};