fix text editor toolbar buttom active bug with tests