assign a type when publishing from editor