fix insertion point for both inline images and equations, enable/disable
of equation button