From e973b5cfff38c1be97314f2944a83a9afa98feac Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Fri, 13 Apr 2012 01:43:40 -0700 Subject: CSS Rule List - Add inline style to rule list --- .../css-panel/rule-list-container.reel/rule-list-container.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js index 17bdc2a4..4bad8350 100644 --- a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js +++ b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js @@ -80,6 +80,15 @@ exports.RuleListContainer = Montage.create(Component, { if(selection.length === 1) { rules = stylesController.getMatchingRules(selection[0]); + + ///// Add inline style to rule list + rules.splice(0, 0, { + type : 'inline', + selectorText : 'element.style', + parentStyleSheet : 'Inline Style', + style : selection[0].style + }); + } //// TODO: support more selection types this._instanceToAdd = listInstance; -- cgit v1.2.3