Trumbowyg (WYSIWYG editor) integration app for Django admin.
Project description
Introduction
django-fs-trumbowyg is the Django-related reusable app for integrating Trumbowyg WYSIWYG editor http://alex-d.github.io/Trumbowyg/.
Installation
Install django-fs-trumbowyg using pip:
$ pip install django-fs-trumbowyg
Add 'trumbowyg' to your INSTALLED_APPS setting:
INSTALLED_APPS = ( ... 'trumbowyg', ... )
Update your urls.py:
url(r'^trumbowyg/', include('trumbowyg.urls'))
Usage
Use TrumbowygWidget in your forms:
from django.forms import ModelForm from django.contrib.admin import ModelAdmin from trumbowyg.widgets import TrumbowygWidget from your_app.models import YourModel class YourModelAdminForm(ModelForm): class Meta: model = YourModel widgets = { 'text': TrumbowygWidget(), } class YourModelAdmin(admin.ModelAdmin): form = YourModelAdminForm admin.site.register(YourModel, YourModelAdmin)
Credits
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-fs-trumbowyg-0.1.1.tar.gz
(62.3 kB
view hashes)
Close
Hashes for django-fs-trumbowyg-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e572317b847851785998748f92f1354d3168305aeac3df462ddd1e0cdebd132 |
|
MD5 | 5b9fed90eafebf7d81a861bbd703be61 |
|
BLAKE2b-256 | b30e494265999c5136fe6765cdcf6e268c7445d128f5f5acf28f64b397fae56a |