accessing parents
[fnpeditor.git] / modules / documentCanvas / canvas / documentElement.js
index 2225e0c..cd94759 100644 (file)
@@ -32,6 +32,9 @@ $.extend(DocumentElement.prototype, {
         });
         return toret;
     },
+    parent: function() {
+        return documentElementFromHTMLElement(this.$element.parent()[0]);
+    },
 
     sameNode: function(other) {
         return other && (typeof other === typeof this) && other.$element[0] === this.$element[0];