Why the post content editor always expanded?

I’m not sure i understand what you mean by ‘expanded’ but look into those two options, i think it will solve your problem.

enter image description here