semvec/pypi-packages huggingface dataset:
django-tinymce4-plus 1.10.0
A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.
License: MIT License
Requires Python: >=3.8
Keywords: django, wysiwyg, editor, widget, tinymce

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