Updated editor to make it compatible with ios devices