add mouse listener on editor