Yeah, but these partisan hacks were not on active duty when they attacked the President...so hard to say how that fits in to the UCMJ....
Any commissioned officer who uses contemptuous words against the President, the Vice President, Congress, the Secretary of Defense, the Secretary of a military department, the Secretary of Homeland Security, or the Governor or legislature of any State, Commonwealth, or possession in which he is on duty or present shall be punished as a court-martial may direct.
It doesnt mention while on active duty so I must assume that the law still applies after leaving active duty