Skip to content

Horizontal text alignment  #395

Open
@jkevingutierrez

Description

@jkevingutierrez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions