code: function destroyEditOverlay() {
    if (overlay) {
      overlay.parentNode.removeChild(overlay);
      overlay = null;
    }
  
    document.removeEventListener('click', handleDocumentClick);
    document.removeEventListener('keyup', handleDocumentKeyup);
    document.removeEventListener('mousedown', handleDocumentMousedown);
    document.removeEventListener('mousemove', handleDocumentMousemove);
    document.removeEventListener('mouseup', handleDocumentMouseup);
    enableUserSelect();
  }
docs: Destroy the edit overlay if it exists.