Skip to main content

A Django application that contains a widget to render a form field as a TinyMCE editor.

Project description

django-tinymce

django-tinymce is a Django application that contains a widget to render a form field as a TinyMCE editor.

Jazzband https://img.shields.io/pypi/v/django-tinymce.svg https://img.shields.io/pypi/pyversions/django-tinymce.svg https://img.shields.io/pypi/dm/django-tinymce.svg https://travis-ci.org/jazzband/django-tinymce.svg?branch=master https://coveralls.io/repos/github/jazzband/django-tinymce/badge.svg?branch=master

Quickstart

Install django-tinymce:

$ pip install django-tinymce

Add tinymce to INSTALLED_APPS in settings.py for your project:

INSTALLED_APPS = (
    ...
    'tinymce',
)

Add tinymce.urls to urls.py for your project:

urlpatterns = [
    ...
    path('tinymce/', include('tinymce.urls')),
]

In your code:

from django.db import models
from tinymce.models import HTMLField

class MyModel(models.Model):
    ...
    content = HTMLField()

django-tinymce uses staticfiles so everything should work as expected, different use cases (like using widget instead of HTMLField) and other stuff is available in documentation.

Releases

Latest release is 3.0.1. It supports Python 3.6, 3.7 and 3.8 with Django 2.2 and 3.0

Previous releases can be found on github, but they are no longer maintained.

Documentation

http://django-tinymce.readthedocs.org/

Support and updates

Use github issues https://github.com/jazzband/django-tinymce/issues

License

Originally written by Joost Cassee.

This program is licensed under the MIT License (see LICENSE.txt)

Changelog

This document describes changes between each past release.

3.1.0 (2020-09-29)

  • Add support for language configuration

  • Upgrade to TinyMCE 5.5.0

  • Remove the jQuery dependency and fix multiples errors around that

  • Move to the Jazzband organization

3.0.2 (2020-04-22)

  • Update the default config.

3.0.0 (2020-04-10)

  • Upgrade to TinyMCE 5

  • Fix compressor

2.9.0 (2020-04-10)

  • Upgrade test matrix to Python 3.7 and Django 2.1, 2.2

  • Add support for TinyMCE FileBrowser 4.0

  • Remove support for South

2.8.0 (2019-01-15)

  • Use the attrs set on instantiation as well as the attrs passed to render (#237)

2.7.0 (2017-12-19)

  • Drop support for Django 1.7, 1.8, 1.9 and 1.10.

  • Django 1.11 is still supported but issues a deprecation warning.

  • Add support for Django 2.0

  • Added INCLUDE_JQUERY setting to decide whether TinyMCE.media should include a jQuery release (#190).

2.6.0 (2017-01-23)

  • Avoid deprecation warning with django.core.urlresolvers (#188)

  • Fixed a client-side validation issue when the TinyMCE widget has the HTML required attribute set (#187).

  • Fixed a crash when no languages are activated (#175).

2.5.0 (2017-01-23)

  • Added compatibility for Django 1.11.

  • Dropped support for Django 1.6.

2.4.0 (2016-08-31)

  • Added compatibility for Django 1.10.

  • Fix JQuery Problem with grappelli

  • Fix Python 3 compatibility (#170)

  • Improve documentation (#163, #171)

  • Cleaned Imports (#182)

  • Fix TinyMCE Widget for ModelTranslation tabs (#174)

  • Fix JSON mimetype (#186)

2.3.0 (2016-03-10)

  • Added tests (#149)

  • Improved Python3 support

2.2.0 (2015-12-23)

  • TinyMCE compressor now use staticfiles to get the file content (and to find files that are in multiple static directory.) (#142)

2.1.0 (2015-12-23)

  • Rewrite URL files to let it works with Django 1.9 (#147, #148)

  • Add a CONTRIBUTORS file.

2.0.6 (2015-11-12)

  • Make sure jQuery is loaded both in the admin and for non-admin forms. (#141)

2.0.5 (2015-09-09)

  • Use static finders for development mode. (#131)

2.0.4 (2015-08-07)

  • Fix non-admin jQuery.

2.0.3 (2015-08-06)

  • Handle non-admin jQuery. (#108)

2.0.2 (2015-07-26)

  • Add Python3 support.

2.0.1 (2015-07-24)

  • Fix missing CHANGELOG.

2.0.0 (2015-07-23)

  • Starts supporting Django 1.8

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-tinymce-3.1.0.tar.gz (786.5 kB view details)

Uploaded Source

Built Distribution

django_tinymce-3.1.0-py2.py3-none-any.whl (935.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-tinymce-3.1.0.tar.gz.

File metadata

  • Download URL: django-tinymce-3.1.0.tar.gz
  • Upload date:
  • Size: 786.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for django-tinymce-3.1.0.tar.gz
Algorithm Hash digest
SHA256 d3a641ec0d10db05dacab7bf9b11e9c8114d017ad1a9132ba18b10ab6bff1934
MD5 65cc68b7a8142f9fb2b967365f41d74a
BLAKE2b-256 3cf391454bec8b3ad8f965c559c5b7f3b445c12d901a862db0ba5c5f5d44b1f3

See more details on using hashes here.

File details

Details for the file django_tinymce-3.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_tinymce-3.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 935.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for django_tinymce-3.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 47db20515d159c69e3b8c69dca73adfb4e60010335250514d9f6fce6dc98c85c
MD5 ce653095b17c47d1c7f82a2716193716
BLAKE2b-256 36a2d964780b460033624659430117ae8c11ebbe49619d1791d6019ef30e397a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page