Suggestions for allowing content editors to center justify a tags content.
See original GitHub issueDo you have any suggestions for how mobildoc could allow users to center text?
or
Is there any way text-align: center;
can be placed on elements?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
How to Center Text & Headers in CSS Using the Text-Align ...
To center text in CSS, use the text-align property and define it with ... inline CSS to the div to center-align the content...
Read more >text-justify | CSS-Tricks
The text-justify property in CSS is a companion to the text-align property that is used to set the justification method of text when...
Read more >How to right-align and justify-align in Markdown?
If you need to justify whole document like me, then add p { text-align: justify; } to the CSS. Additionally you can also...
Read more >Align text left or right, center text, or justify text on a page
Align the edges of your to the left, center, right, or justified, or vertically to the top, center, or bottom between margins.
Read more >Beginner's Guide: How to Center Align a Video in WordPress
How to Center Align Video in WordPress Content Editor; How to Center ... Here's what your embed code would look like with the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have solved this for my users with the following ugly hack…
Which also required these modifications…
I realize this totally breaks compatibility and portability of mobiledoc, but those were never my reasons for using it.
Thank you for the taking the time to respond.
I finally figured it out! I’ll add it here for posterity (and any other ember.js devs who happen upon this issue): For some reason,
ember-mobiledoc-dom-renderer
namespaces the mobiledoc-dom-renderer, so the following works to override theisValidMarkerType
method: