Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text alignment #4

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

petebytes
Copy link

@petebytes petebytes commented Jun 18, 2020

Thank you very much for making this repo available to others!

This PR adds left, center and right text alignment.
image

Feel free to make any changes you deem necessary.

@petebytes
Copy link
Author

petebytes commented Jun 18, 2020

Found an issue :(
When I save it looks correct
Stored in DB
<h1><div style="text-align: center;">Headline</div></h1>

but when Trix loads after saving this is the result
<h1><div style="text-align: right;"><div><div>Headline</div></div></div></h1>

@petebytes
Copy link
Author

updated the last comment to show code

@petebytes
Copy link
Author

On the commit I listed evaicons - the icons are actually from https://material.io/resources/icons/?style=baseline

@petebytes petebytes marked this pull request as draft August 25, 2020 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant