Move mouse cursor stuff out of Editor into its own class.