The newspaper company said it would pay $280 million for the Journal Media Group.