When writing a post with the editor, I was looking to center a few headings. I read this solution here.
I’m honestly shocked this isn’t an option with text formatting in the editor. I understand markdown is aligned left, but feels trivial to add this as an option in the editor.
Are there plans to add this functionality to the editor? Something this basic shouldn’t require a theme or code injection.
I’m impressed with Ghost and I understand the desire for simplicity, but this feels like over-indexing on simplicity. Aligning text is a must-have, not a nice-to-have.
What’s the use case for only sometimes centering headers? Genuinely curious - it seems like you’d either always want it or never want it. (Or always want it on posts tagged X…, which is similarly doable.)
Ghost is following the principle of separating semantics from styling, as the web has done with using HTML for semantics and CSS for styling.
The other Ghost editor features help communicate semantics like whether something is a heading or if some text should be emphasized with presented.
Centering text is a styling option that Ghost supports through theming for general solutions and code injection if there’s some odd case.
I presume the intent is center all headers, or all elements of a certain type. With CSS, that styling can be done in a single place without the need to apply the same centering formatting to text throughout posts across the site.
every other editor (competitor) offers this. I have many instances within each post I would like to center a line or paragraph for a desired formatting effect, while the remainder of the post remains left aligned. I understand full theme center alignment doesn’t make sense within the post, but the option lacking within the format bar is the issue, having to inject code to do this is not user friendly and no spin you provide can convince those otherwise who are searching for this feature or support, asking why it’s not there, or voting to have it added.
I think you could use a code snippet for that which includes the formatting as inline CSS, with some kind of:
<p style="text-align:center!important;">
YOUR DESIRED CENTERED TEXT
</p>
So your texts will be rendered using that styling, but at the same time is not a good practice. The best way should be using the method you pointed, i think.