Metadata-Version: 2.3
Name: django-tinymce4-plus
Version: 1.10.0
Summary: A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.
Keywords: django,wysiwyg,editor,widget,tinymce
Author: Roman Miroshnychenko (django-tinymce4-lite package author), Anfimov Dmitrii (fork author)
Author-email: Roman Miroshnychenko (django-tinymce4-lite package author) <roman1972@gmail.com>, Anfimov Dmitrii (fork author) <danfimov@yandex.ru>
License: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: django>=1.11
Requires-Dist: jsmin
Requires-Dist: pyenchant>=3.2.2 ; extra == 'enchant'
Requires-Python: >=3.8
Project-URL: Changelog, https://github.com/danfimov/django-tinymce4-plus/docs/changelog.md
Project-URL: Documentation, http://dafimov.github.io/django-tinymce4-plus
Project-URL: Homepage, https://github.com/danfimov/django-tinymce4-plus
Project-URL: Issues, http://dafimov.github.io/django-tinymce4-plus/issues
Project-URL: Repository, https://github.com/danfimov/django-tinymce4-plus
Provides-Extra: enchant
Description-Content-Type: text/markdown

# django-tinymce4-plus

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-tinymce4-plus?style=for-the-badge&logo=python)](https://pypi.org/project/django-tinymce4-plus/)
[![PyPI](https://img.shields.io/pypi/v/django-tinymce4-plus?style=for-the-badge&logo=pypi)](https://pypi.org/project/django-tinymce4-plus/)
![Django versions](https://img.shields.io/pypi/djversions/django-tinymce4-plus.svg?style=for-the-badge&logo=django)


`django-tinymce4-plus` is a reworked fork of [django-tinymce4](https://github.com/dani0805/django-tinymce4). It provides a [TinyMCE 4](https://www.tinymce.com/) 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](docs/_static/html_form.png)

## Installation

```bash
pip install django-tinymce4-plus
```

## Usage
In your code:

```python
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:

```html
<!DOCTYPE html>
<html>
<head>
    ...
    {{ form.media }}
</head>
<body>
    ...
</body>
</html>
```

## Documentation

For more details see [documentation](https://danfimov.github.io/django-tinymce4-plus/).

## Useful links

- [django-tinymce4](https://github.com/dani0805/django-tinymce4);
- [TinyMCE 4](https://www.tinymce.com/);
- [django-filebrowser](https://github.com/sehmaschine/django-filebrowser);
- [django-filebrowser-no-grappelli](https://github.com/smacker/django-filebrowser-no-grappelli);
- [TinyMCE docs](https://www.tinymce.com/docs/).

## License

MIT license. See [LICENSE](https://github.com/danfimov/django-tinymce4-plus/blob/main/LICENSE)
