fix emmet undefined in non-html challenges
This commit is contained in:
@ -216,6 +216,7 @@ var allSeeds = '';
|
|||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
if (typeof emmetCodeMirror !== 'undefined') {
|
||||||
var defaultKeymap = {
|
var defaultKeymap = {
|
||||||
'Cmd-E': 'emmet.expand_abbreviation',
|
'Cmd-E': 'emmet.expand_abbreviation',
|
||||||
'Tab': 'emmet.expand_abbreviation_with_tab',
|
'Tab': 'emmet.expand_abbreviation_with_tab',
|
||||||
@ -223,6 +224,7 @@ var defaultKeymap = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
emmetCodeMirror(editor, defaultKeymap);
|
emmetCodeMirror(editor, defaultKeymap);
|
||||||
|
}
|
||||||
|
|
||||||
editor.setOption('extraKeys', {
|
editor.setOption('extraKeys', {
|
||||||
Tab: function(cm) {
|
Tab: function(cm) {
|
||||||
|
Reference in New Issue
Block a user