Skip to main content

A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.

Project description

django-tinymce4-plus

PyPI - Python Version PyPI Django versions

django-tinymce4-plus is a reworked fork of django-tinymce4. It provides a TinyMCE 4 editor widget that can be used in Django forms and models.

In this fork, all legacy and broken code has been cleaned in order to provide a simple but full-featured TinyMCE 4 experience in Django projects.

TinyMCE 4 in Django Admin

Installation

pip install django-tinymce4-plus

Usage

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

For more details see documentation.

Useful links

License

MIT license. See LICENSE

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_tinymce4_plus-1.10.0.tar.gz (922.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tinymce4_plus-1.10.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file django_tinymce4_plus-1.10.0.tar.gz.

File metadata

File hashes

Hashes for django_tinymce4_plus-1.10.0.tar.gz
Algorithm Hash digest
SHA256 47f95adcb45b8a6ef661020356683aa95eafb8114996c18bd1de4cf8688b33e1
MD5 a02238dc2e0d1321af49d816ef7fd724
BLAKE2b-256 23eef9857a785f8ce149e564207be3d057592247df38c3d94ba1604374fe7a0e

See more details on using hashes here.

File details

Details for the file django_tinymce4_plus-1.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_tinymce4_plus-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c56bc880e2ab20e6c1758bfbeb5ef9b40bc5ce60e6c64786dcd9df5d02ccaf0
MD5 caaa35169620ccff58f7bac372353ccb
BLAKE2b-256 25ec1dd9932cba514fa778d1960fdc747eb1272b2c981ac4463b1ab63f2668b6

See more details on using hashes here.

Supported by

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