Reload grammar in editor when path changes

This regressed in the react editor since it doesn't handle these events yet.

This probably should have always happened at the model anyway.

Closes #2385