Merge pull request #3209 from FreeCodeCamp/fix/emmet-undefined

fix emmet undefined in non-html challenges
This commit is contained in:
Ben McMahon
2015-09-09 22:55:13 +01:00

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) {