code: function findParentContentEditable(node) {
            var parent = node;
  
            while (parent) {
              if (parent.nodeType === 1 && getContentEditable(parent)) {
                return getContentEditable(parent) === "false" ? parent : node;
              }
  
              parent = parent.parentNode;
            }
  
            return node;
          }
docs: Expands the node to the closes contentEditable false element if it exists