feature(edit) emmet: add css suport

This commit is contained in:
coderaiser 2014-01-03 12:47:42 +00:00
parent 156d8f4ea9
commit f15b71f487

View file

@ -35,7 +35,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
}
this.show = function(pValue) {
var lMode, htmlMode,
var lMode, htmlMode, cssMode,
lName = Info.name,
isDir = Info.isDir,
lExt = Info.ext;
@ -66,10 +66,11 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
lMode = Modelist.getModeForPath(lName).mode;
htmlMode = Modelist.modesByName.html.mode;
cssMode = Modelist.modesByName.css.mode;
Session.setMode(lMode);
if (lMode === htmlMode)
if (lMode === htmlMode || lMode === cssMode)
DOM.jsload(DIR + 'emmet.js', function() {
var Emmet = ace.require("ace/ext/emmet");