Awesome
wagtail_text_alignment
Why is this package better than other implementations?
Other implementations often lack support for text alignment on block entities. This package doesn't have that limitation. You can align text, headings, lists, etc.
Quick start
-
Install the package via pip:
pip install wagtail_text_alignment
-
Add 'wagtail_text_alignment' to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ..., 'wagtail_text_alignment', ]
-
Add 'text-alignment' to your richtext features. (it is included in default features)
-
To align it on the frontend too; add the following CSS:
.text-left { text-align: left; } .text-center{ text-align: center; } .text-right { text-align: right; }