Don't fire editor events when not in the editor

@magico13 fixed on my side too now...