change editor to mg