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

Horizontal text alignment #395

Open
jkevingutierrez opened this issue Jul 22, 2020 · 0 comments
Open

Horizontal text alignment #395

jkevingutierrez opened this issue Jul 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jkevingutierrez
Copy link

jkevingutierrez commented Jul 22, 2020

Is your proposal related to a problem?

Horizontal text alignment (left, center, right, justify) is a common option used in text editors. It would be great to have it by default

Describe the solution you’d like

Add 4 new options to align text (Images or other blocks could be aligned too)

image

Describe alternatives you’ve considered

We are still able to create a custom block to achieve this. But there are some considerations that could complicate it a little bit:

  • It cannot be a block component or you wouldn't be able to combine it with other Blocks. Like having an H2 centered.
  • It cannot be a InlineStyle as it won't be a "block" element meaning that it won't have a container to align the things in.

Finally, it needs to be an Entity which are a bit more complex to implement than InlineStyles and Blocks.

As this seems to be a common thing used in editors, it would be good to have it by default on Draftail.

@jkevingutierrez jkevingutierrez added the enhancement New feature or request label Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant