function hideMenu(clearActive = true) {
		if (!$el.parentElement.contains($menu)) return;
		$menu.remove();
		editor.selection.off("changeCursor", hideMenu);
		editor.selection.off("changeSelection", hideMenu);
		if (clearActive) menuActive = false;
	}
@param {boolean} clearActive whether to clear menuActive
@returns {void}