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