Cleanup of medium editor