Metadata-Version: 2.1
Name: django-tinymce4-plus
Version: 1.9.1
Summary: A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.
Author-email: "Roman Miroshnychenko (django-tinymce4-lite package author)" <roman1972@gmail.com>, "Anfimov Dmitrii (fork author)" <danfimov@yandex.ru>
License: MIT License
Project-URL: Homepage, https://github.com/danfimov/django-tinymce4-plus
Project-URL: Repository, https://github.com/danfimov/django-tinymce4-plus
Project-URL: Documentation, http://dafimov.github.io/django-tinymce4-plus
Project-URL: Issues, http://dafimov.github.io/django-tinymce4-plus/issues
Project-URL: Changelog, https://github.com/danfimov/django-tinymce4-plus/docs/changelog.md
Keywords: django,wysiwyg,editor,widget,tinymce
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: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: django>=1.11
Requires-Dist: jsmin
Provides-Extra: enchant
Requires-Dist: pyenchant>=3.2.2; extra == "enchant"

# django-tinymce4-plus

![PyPI version](https://img.shields.io/pypi/v/django-tinymce4-plus.svg?style=flat&color=light-green)
![Python versions](https://img.shields.io/pypi/pyversions/django-tinymce4-plus.svg)
![Django versions](https://img.shields.io/pypi/djversions/django-tinymce4-plus.svg)
[![Code quality](https://github.com/danfimov/django-tinymce4-plus/actions/workflows/code-quality.yml/badge.svg)](https://github.com/danfimov/django-tinymce4-plus/actions/workflows/code-quality.yml)

`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)
