editor: Bring back metadata editor as a modal dialog
[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 toret;
+    return toret || parentElement;
 };
 
 var getElementForDetachedNode = function(node, originalParent) {