A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.
Project description
django-tinymce4-lite
django-tinymce4-lite is a reworked fork of django-tinymce4. It provides a fully functional TinyMCE 4 editor widget that can be used in Django forms and models. The application can use django-filebrowser or django-filebrowser-no-grappelli as a file manager for TinyMCE 4 to insert images and file links into edited text.
Warning: TinyMCE 4 is incompatible with TinyMCE 3. Read TinyMCE docs for more information about how to configure TimyMCE 4 editor widget.
Compatibility
Python: 2.7, 3.4, 3.5
Django: 1.8, 1.9, 1.10
Quick Start
Install django-tinymce4-lite:
$ pip install django-tinymce4-lite
Add tinymce to INSTALLED_APPS in settings.py for your Django project:
INSTALLED_APPS = (
...
'tinymce',
)
Add tinymce.urls to urls.py for your project:
urlpatterns = [
...
url(r'^tinymce/', include('tinymce.urls')),
...
]
In your code:
from django.db import models
from tinymce import HTMLField
class MyModel(models.Model):
...
content = HTMLField('Content')
In Django Admin the widget is used automatically for all models that have HTMLField fields. If you are using TinyMCE 4 in your website forms, add form.media variable into your templates:
<!DOCTYPE html>
<html>
<head>
...
{{ form.media }}
</head>
<body>
...
</body>
</html>
Documentation
License
MIT license. See LICENSE.txt
Changelog
1.2.0
Upgraded TinyMCE to v.4.4.3
Added TINYMCE_ADDITIONAL_JS_URLS configuration option.
1.1.0
Upgraded TinyMCE to v.4.4.1
Added Django 1.10 to compatibility matrix
1.0.0
Initial PyPI release
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
Hashes for django-tinymce4-lite-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b04899ec9201d2008a50c595620ba0b84c93dfa5aac8109cefaff98850acbc |
|
MD5 | 57925aa1f5c5cb4209a47ed87a089984 |
|
BLAKE2b-256 | 8c061553d415c8a822b61044c86c8cca9dec4111b906ee28342aeefcaed4a4c4 |
Hashes for django_tinymce4_lite-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11529183ba33daced2d0e336070072ce83402b45664d2d1754f6b4e25abcec92 |
|
MD5 | 0f974827ad5ac8a969574f4b8cd891df |
|
BLAKE2b-256 | 555461068b4a2cd27ba4a69e528efa627df2d09d348de014ff1579a8c476768c |