springload / draftail

📝🍸 A configurable rich text editor built with Draft.js
https://www.draftail.org/
MIT License
612 stars 64 forks source link

Horizontal text alignment #395

Open jkevingutierrez opened 4 years ago

jkevingutierrez commented 4 years ago

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:

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.