From c043e370d9c59171ee397b2f60974dce4c86057c Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Sun, 6 Sep 2015 21:34:33 +0530 Subject: [PATCH] Restore emmet.io support close FreeCodeCamp/FreeCodeCamp#2720 --- client/commonFramework.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/commonFramework.js b/client/commonFramework.js index 3a6c8d911e..0a27245a2a 100644 --- a/client/commonFramework.js +++ b/client/commonFramework.js @@ -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()) {