aceeditor: move event listeners so they won't be overwritten when the component is instantiated with listeners