code: function removeCaretContainer(node, moveCaret) {
            var child, rng;
  
            if (!node) {
              node = getParentCaretContainer(selection.getStart());
  
              if (!node) {
                while ((node = dom.get(caretContainerId))) {
                  removeCaretContainer(node, false);
                }
              }
            } else {
              rng = selection.getRng(true);
  
              if (isCaretContainerEmpty(node)) {
                if (moveCaret !== false) {
                  rng.setStartBefore(node);
                  rng.setEndBefore(node);
                }
  
                dom.remove(node);
              } else {
                child = findFirstTextNode(node);
  
                if (child.nodeValue.charAt(0) === INVISIBLE_CHAR) {
                  child.deleteData(0, 1);
  
                  // Fix for bug #6976
                  if (rng.startContainer == child && rng.startOffset > 0) {
                    rng.setStart(child, rng.startOffset - 1);
                  }
  
                  if (rng.endContainer == child && rng.endOffset > 0) {
                    rng.setEnd(child, rng.endOffset - 1);
                  }
                }
  
                dom.remove(node, 1);
              }
  
              selection.setRng(rng);
            }
          }
docs: Removes the caret container for the specified node or all on the current document