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.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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf19eac3c872f59e4e52d62e14549105f5b246ed75d920ddf01f2216113df2cd |
|
MD5 | 8bb7cae47405772b5596b6d1a0f6d103 |
|
BLAKE2b-256 | bac38acc70deee3894e4a1f860da4462e18220219d8ad3059af84a6c59dfc4a4 |
Hashes for django_tinymce4_lite-1.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f95ac66c62e4a8ce85c9e82d96502fdb3324493f8a94c8362dbb3e2b5e5a4f3f |
|
MD5 | 8c58cb9963b7e8318503fd2714085d9f |
|
BLAKE2b-256 | 7f284f6c2d5c289fe42fe2ccd3c617578bd86ff040e93faebafac0d957c48dc7 |