Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
.. image:: https://secure.travis-ci.org/littlepea/django-editor.png :target: http://travis-ci.org/littlepea/django-editor
Allows pluggable WYSIWYG editors in django admin without hard dependencies.
Currently supported editors (both optional):
django-imperavi
_django-tinycme
_Install with pip::
pip install django-editor
(optional) Add imperavi
or tinymce
to your INSTALLED_APPS in settings.py
::
INSTALLED_APPS = ( ... # Imperavi (or tinymce) rich text editor is optional 'imperavi', )
editor
package gives you the following replacement classes:
django.forms.widgets.Textarea
=> editor.EditorWidget
(becomes ImperaviWidget
or TinyMCE
)django.contrib.admin.ModelAdmin
=> editor.EditorAdmin
(becomes ImperaviAdmin
or stays as ModelAdmin
)django.contrib.admin.StackedInline
=> editor.EditorStackedInline
(becomes ImperaviStackedInline
or stays as StackedInline
)Here are some examples on how to easily turn your Textareas into WYSIWYG editors::
# admin.py
from django.db import models
from django.contrib import admin
from editor.admin import EditorAdmin, EditorWidget, EditorStackedInline
class MyInlineAdmin(EditorStackedInline): # StackedInline example
model = Model1
class MyModel2Admin(EditorAdmin): # ModelAdmin example
inlines = [MyInlineAdmin]
admin.site.register(Model2, MyModel2Admin)
class MyModel3Admin(admin.ModelAdmin):
formfield_overrides = {
models.TextField: {'widget': EditorWidget},
}
admin.site.register(Model3, MyModel3Admin)
django-imperavi
_django-tinycme
_modern-package-template
_django-newsletter
_ for providing pluggable editor code idea.. _modern-package-template
: http://pypi.python.org/pypi/modern-package-template
.. _django-imperavi: https://github.com/vasyabigi/django-imperavi
.. _django-tinycme: https://github.com/aljosa/django-tinymce
.. _django-newsletter: https://github.com/dokterbob/django-newsletter
.. This is your project NEWS file which will contain the release notes. .. Example: http://www.python.org/download/releases/2.6/NEWS.txt .. The content of this file, along with README.rst, will appear in your .. project's PyPI page.
Release date: UNRELEASED
Release date: 19-Mar-2013
FAQs
Allows pluggable WYSIWYG editors in django admin without hard dependencies
We found that django-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.