editor ui: functionality of removing element while keeping its content
[fnpeditor.git] / modules / documentCanvas / canvas / documentElement.js
index 7ca7e59..f8806ae 100644 (file)
@@ -47,7 +47,7 @@ $.extend(DocumentElement.prototype, {
         this.$element = $(htmlElement);
     },
     bound: function() {
-        return this.canvas !== undefined;
+        return $.contains(document.documentElement, this.dom()[0]);
     },
     dom: function() {
         return this.$element;