Merge pull request #3123 from abhisekp/add-emmet

Restore emmet.io support
This commit is contained in:
Berkeley Martinez
2015-09-09 13:15:16 -07:00

View File

@ -216,6 +216,14 @@ var allSeeds = '';
});
})();
var defaultKeymap = {
'Cmd-E': 'emmet.expand_abbreviation',
'Tab': 'emmet.expand_abbreviation_with_tab',
'Enter': 'emmet.insert_formatted_line_break_only'
};
emmetCodeMirror(editor, defaultKeymap);
editor.setOption('extraKeys', {
Tab: function(cm) {
if (cm.somethingSelected()) {