Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Nigel2392/wagtail_text_alignment
Text alignment for your Wagtail richtext
https://github.com/Nigel2392/wagtail_text_alignment
Last synced: 30 days ago
JSON representation
Text alignment for your Wagtail richtext
- Host: GitHub
- URL: https://github.com/Nigel2392/wagtail_text_alignment
- Owner: Nigel2392
- License: gpl-2.0
- Created: 2024-05-13T11:05:05.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-13T11:35:39.000Z (8 months ago)
- Last Synced: 2024-12-08T17:46:02.000Z (about 1 month ago)
- Language: Python
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wagtail - Wagtail Text Alignment - Align text, headings and more in your Wagtail richtext editor. (Apps / Rich text editor extensions)
README
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
-----------1. Install the package via pip:
```bash
pip install wagtail_text_alignment
```2. Add 'wagtail_text_alignment' to your INSTALLED_APPS setting like this:
```
INSTALLED_APPS = [
...,
'wagtail_text_alignment',
]
```3. Add 'text-alignment' to your richtext features. (it is included in default features)
4. To align it on the frontend too; add the following CSS:
```css
.text-left {
text-align: left;
}
.text-center{
text-align: center;
}
.text-right {
text-align: right;
}
```