A lightweight, Tailwind-powered rich text editor widget for Django forms.
Project description
Django Editorium
Django Editorium is a lightweight, TailwindCSS-powered rich text editor widget for Django forms. It supports headings, lists, links, and inline formatting with AlpineJS interactivity.
Features
- Bold, italic, underline
- Headings (H1–H4), paragraphs
- Ordered and unordered lists
- Link insertion modal
- TailwindCSS styling
- AlpineJS-powered interactivity
Installation
pip install django-editorium
Usage
In your forms.py:
from django import forms
from django_editorium.widgets import EditoriumWidget
class ArticleForm(forms.ModelForm):
class Meta:
model = Article
fields = ['title', 'content']
widgets = {
'content': EditoriumWidget()
}
TailwindCSS Integration
To ensure proper styling, include TailwindCSS in your base template or build pipeline.
CDN Option
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>License
MIT MIT License
Copyright (c) 2025 Rivindhu
Permission is hereby granted
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_editorium-0.1.0.tar.gz.
File metadata
- Download URL: django_editorium-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e2501b5245b04b0e49be903a7bbf7d9020c77d13e55f0b9f89e800027bfad75
|
|
| MD5 |
36379c235e98ecea7d2061434416d448
|
|
| BLAKE2b-256 |
777d7284269e1b1d773408626d1dfe1248717a170a4e4a1332ba442ed8a3bc13
|
File details
Details for the file django_editorium-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_editorium-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f6c6f0026870ec2753142d0f75844d0a9f243bef34b265e686cb28c2c384b3c
|
|
| MD5 |
bb9ad1a37baed474e2d81c78f0f09267
|
|
| BLAKE2b-256 |
7db8e9e5d48e709faa0a0397f77ac0e40aae6ec453f440a02f94c8e69bdbc3c8
|