minor improvement for the Emucharts Text editor