From f15b71f48716fa3348b3575b894096a235253872 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 3 Jan 2014 12:47:42 +0000 Subject: [PATCH] feature(edit) emmet: add css suport --- lib/client/edit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 3f677ce6..cf5744cf 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -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");