code: function getParentCaretContainer(node) {
            while (node) {
              if (node.id === caretContainerId) {
                return node;
              }
  
              node = node.parentNode;
            }
          }
docs: Returns any parent caret container element