editor: remove metadata editor which is now not needed
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / utils.js
index 1df3f82..4e262a0 100644 (file)
@@ -58,7 +58,7 @@ var _getElementForTextNode = function(textNode, withParent) {
             return true;
         }
     });
             return true;
         }
     });
-    return toret;
+    return toret || parentElement;
 };
 
 var getElementForDetachedNode = function(node, originalParent) {
 };
 
 var getElementForDetachedNode = function(node, originalParent) {