X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/deeb9be02fa983184ddf5fcc14d01f984079783d..24f82f204feceecca2d05e1b2c9a07f7146642cc:/src/editor/modules/documentCanvas/canvas/documentElement.js?ds=inline
diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js
index 7acf7c8..45592ef 100644
--- a/src/editor/modules/documentCanvas/canvas/documentElement.js
+++ b/src/editor/modules/documentCanvas/canvas/documentElement.js
@@ -102,7 +102,7 @@ $.extend(DocumentNodeElement.prototype, {
contentContainer = $('
')
.attr('document-element-content', '');
- wrapper.append(widgetsContainer, contentContainer);
+ wrapper.append(contentContainer, widgetsContainer);
widgetsContainer.find('*').add(widgetsContainer).attr('tabindex', -1);
return wrapper;
},
@@ -112,7 +112,6 @@ $.extend(DocumentNodeElement.prototype, {
detach: function() {
var parents = this.parents();
this.dom.detach();
- this.canvas = null;
if(parents[0]) {
parents[0].refreshPath();
}
@@ -188,7 +187,6 @@ $.extend(DocumentTextElement.prototype, {
},
detach: function() {
this.dom.detach();
- this.canvas = null;
return this;
},
setText: function(text) {