text editor events