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.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.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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2d80cfbdb463e95710fbbbfe4ba0fd078b692b3a115098f35d16222d6acb18c |
|
MD5 | 620b40530c71f534ddb387c2eac88448 |
|
BLAKE2b-256 | c14f8c8f08796ac72f136006b3475f7ec7cbf1f1d276619bdd604658491877b3 |
Hashes for django_tinymce4_lite-1.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdaf423ef1b2995761617bfdf7d5490171d86bc15cff3d0c9657d1ddb22c9a09 |
|
MD5 | 2cdc3f39bf7effde2a3f08775bc5e049 |
|
BLAKE2b-256 | baacea2332c01d3cd40a0f8cc218f467ac69c21db09103d5b6328beddb9d1e3f |