Primary command name is used by double click and enter.
Make this launch the default edit action 'mathDialog'.
Change-Id: Ie7a87914a55ecc87769c4a1aa029b36966b83a04
An error will contain an element with class "error".
Relies on I3f4ba354a in visual editor core in order to work.
Also remove old afterRender method.
Bug: T112610
Change-Id: Ie681806aebfdd7de918685c9343f5e176baaf517