Skip to content

Add text alignment - #4

Draft
petebytes wants to merge 3 commits into
lazaronixon:masterfrom
petebytes:add-center-alignment
Draft

Add text alignment#4
petebytes wants to merge 3 commits into
lazaronixon:masterfrom
petebytes:add-center-alignment

Conversation

@petebytes

@petebytes petebytes commented Jun 18, 2020

Copy link
Copy Markdown

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

petebytes commented Jun 18, 2020

Copy link
Copy Markdown
Author

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
Copy Markdown
Author

updated the last comment to show code

@petebytes

Copy link
Copy Markdown
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