diff --git a/suite/common/contentAreaUtils.js b/suite/common/contentAreaUtils.js index d5377ca2e08..b4b8c422327 100644 --- a/suite/common/contentAreaUtils.js +++ b/suite/common/contentAreaUtils.js @@ -102,6 +102,9 @@ function findParentNode(node, parentNode) { + if (node && node.nodeType == Node.TEXT_NODE) { + node = node.parentNode; + } while (node) { var nodeName = node.localName; if (!nodeName)