aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-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 40e94cca..611cf214 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -84,6 +84,7 @@ exports.ElementMediator = Montage.create(Component, {
84 value: function(newChild, oldChild, notify) { 84 value: function(newChild, oldChild, notify) {
85 85
86 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild); 86 this.application.ninja.currentDocument.model.documentRoot.replaceChild(newChild, oldChild);
87 if (newChild.getAttribute) newChild.setAttribute('data-ninja-node', 'true');
87 88
88 var undoLabel = "replace element"; 89 var undoLabel = "replace element";
89 90