aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels')
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.js9
1 files changed, 9 insertions, 0 deletions
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, {
80 80
81 if(selection.length === 1) { 81 if(selection.length === 1) {
82 rules = stylesController.getMatchingRules(selection[0]); 82 rules = stylesController.getMatchingRules(selection[0]);
83
84 ///// Add inline style to rule list
85 rules.splice(0, 0, {
86 type : 'inline',
87 selectorText : 'element.style',
88 parentStyleSheet : 'Inline Style',
89 style : selection[0].style
90 });
91
83 } //// TODO: support more selection types 92 } //// TODO: support more selection types
84 93
85 this._instanceToAdd = listInstance; 94 this._instanceToAdd = listInstance;