fix emmet undefined in non-html challenges

This commit is contained in:
Berkeley Martinez
2015-09-09 14:39:01 -07:00
parent f8657efc0e
commit f3f6dad026

View File

@ -216,6 +216,7 @@ var allSeeds = '';
});
})();
if (typeof emmetCodeMirror !== 'undefined') {
var defaultKeymap = {
'Cmd-E': 'emmet.expand_abbreviation',
'Tab': 'emmet.expand_abbreviation_with_tab',
@ -223,6 +224,7 @@ var defaultKeymap = {
};
emmetCodeMirror(editor, defaultKeymap);
}
editor.setOption('extraKeys', {
Tab: function(cm) {