function clearSelectionMode(e, clearActive = true) {
		const $els = [$start.dataset.immortal, $end.dataset.immortal];
		if ($els.includes("true")) return;
		if ($el.contains($start)) $start.remove();
		if ($el.contains($end)) $end.remove();
		if (clearActive) {
			selectionActive = false;
		}

		editor.selection.off("changeSelection", clearSelectionMode);
		editor.selection.off("changeCursor", clearSelectionMode);
	}
Remove selection mode
@param {Event} e Event
@param {boolean} clearActive whether to clear selectionActive
@returns {void}