aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/element-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/elements/element-controller.js')
-rwxr-xr-xjs/controllers/elements/element-controller.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js
index 452d09f1..7f553551 100755
--- a/js/controllers/elements/element-controller.js
+++ b/js/controllers/elements/element-controller.js
@@ -11,9 +11,8 @@ exports.ElementController = Montage.create(Component, {
11 11
12 addElement: { 12 addElement: {
13 value: function(el, styles) { 13 value: function(el, styles) {
14 this.application.ninja.currentDocument.documentRoot.appendChild(el); 14 this.application.ninja.currentSelectedContainer.appendChild(el);
15 // Nested elements - TODO make sure the CSS is correct before nesting elements 15
16 // this.application.ninja.currentSelectedContainer.appendChild(el);
17 if(styles) { 16 if(styles) {
18 this.application.ninja.stylesController.setElementStyles(el, styles); 17 this.application.ninja.stylesController.setElementStyles(el, styles);
19 } 18 }