Django form widget for Trix.
Integrate Trix editor with Django forms framework.
Supports: Python 3.10.
Supports Django Versions: 3.2
$ pip install django-trix-widget
Add trix_widget
to INSTALLED_APPS
.
Run migrations:
Import the widget from the package:
from django import forms
from trix_widget.widgets import TrixWidget
class MyForm(forms.Form):
text = forms.CharField(widget=TrixWidget())