DEV Community

Discussion on: Adding text alignment to Trix

Collapse
 
justintanner profile image
Justin Tanner

Fantastic article, this works perfectly, with one exception.

A centered heading, try this:

  1. Create an H1 by highlighting text and clicking "Tt"
  2. Highlight the same text and click center
  3. Text is not centered

But, changing the order like so works:

  1. Highlight text click center
  2. Highlight the same text click H1 (or Tt)
  3. Heading is centered

Any ideas on how to fix that?