aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/element-mediator.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index cf93d8b7..017ed20a 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -83,6 +83,7 @@ exports.ElementMediator = Montage.create(Component, {
83 value: function(newChild, oldChild, notify) { 83 value: function(newChild, oldChild, notify) {
84 84
85 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); 85 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild);
86 if (newChild.getAttribute) newChild.setAttribute('data-ninja-node', 'true');
86 87
87 var undoLabel = "replace element"; 88 var undoLabel = "replace element";
88 89