Skip to content

Text align justify #289

@consti

Description

@consti

I would like to be able to add three buttons (text align left, text align justify, text align right).

Is this possible with the current version of trix?

Is there anyway to pass a class to a blockAttribute?

All I was able to do, was add a new textAttribute that has a custom tagName, which I can then style through CSS (display: block; text-align: justify;).

Trix.config.textAttributes.textAlignJustify = { tagName: 'div-text-align-justify' }

The problem with custom HTML tags is browser support. Because although it's defined in HTML 5, only Chrome (and Opera) provide support.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions