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+
Django: 1.8-1.11
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.3.2
Fix compatibility with Django v.1.11
1.3.1
Upgraded TinyMCE to v.4.5.5
Fix language file configuration for languages with country codes [Gagaro].
Test rendering TinyMCE 4 with Selenium/PhantomJS.
1.3.0
Upgraded TinyMCE to v.4.5.1
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.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f9c5f78d566261811158ecbc81ea87ba57178ca32f8c101050fa241230890f |
|
MD5 | cfbc3d7a4941bd853a7522aff91bc2b6 |
|
BLAKE2b-256 | bcc1f5f9d36ecf7f5604b4d30b04ca52df80a34cfdea3759c3ae67dbb03b5157 |
Hashes for django_tinymce4_lite-1.3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9476d0e18525e76a5d184c4fbeff13e5ce64df856d7e809bbbd171737524dfef |
|
MD5 | 5bc13fbec6b7fe14010625966938b141 |
|
BLAKE2b-256 | a88024d8a452620ace179b832d55cfa715e191f5172bad3e22b279017c114f50 |