Add event type for "before selection" event
Delay event listeners addition on CM editor until a real handler is
added