django-tinymce4-plus


Namedjango-tinymce4-plus JSON
Version 1.9.1 PyPI version JSON
download
home_pageNone
SummaryA Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.
upload_time2024-12-08 09:42:54
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License
keywords django wysiwyg editor widget tinymce
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-tinymce4-plus",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "django, wysiwyg, editor, widget, tinymce",
    "author": null,
    "author_email": "\"Roman Miroshnychenko (django-tinymce4-lite package author)\" <roman1972@gmail.com>, \"Anfimov Dmitrii (fork author)\" <danfimov@yandex.ru>",
    "download_url": "https://files.pythonhosted.org/packages/16/20/f64a37feb7298874dceb62a77d7f85bcc4c0b42045ac00024b5da04409b4/django_tinymce4_plus-1.9.1.tar.gz",
    "platform": null,
    "description": "# django-tinymce4-plus\n\n![PyPI version](https://img.shields.io/pypi/v/django-tinymce4-plus.svg?style=flat&color=light-green)\n![Python versions](https://img.shields.io/pypi/pyversions/django-tinymce4-plus.svg)\n![Django versions](https://img.shields.io/pypi/djversions/django-tinymce4-plus.svg)\n[![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)\n\n`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.\n\nIn 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.\n\n![TinyMCE 4 in Django Admin](docs/_static/html_form.png)\n\n## Installation\n\n```bash\npip install django-tinymce4-plus\n```\n\n## Usage \nIn your code:\n\n```python\nfrom django.db import models\nfrom tinymce import HTMLField\n\nclass MyModel(models.Model):\n    ...\n    content = HTMLField('Content')\n```\n\nIn 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:\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n    ...\n    {{ form.media }}\n</head>\n<body>\n    ...\n</body>\n</html>\n```\n\n## Documentation\n\nFor more details see [documentation](https://danfimov.github.io/django-tinymce4-plus/).\n\n## Useful links\n\n- [django-tinymce4](https://github.com/dani0805/django-tinymce4);\n- [TinyMCE 4](https://www.tinymce.com/);\n- [django-filebrowser](https://github.com/sehmaschine/django-filebrowser);\n- [django-filebrowser-no-grappelli](https://github.com/smacker/django-filebrowser-no-grappelli);\n- [TinyMCE docs](https://www.tinymce.com/docs/).\n\n## License\n\nMIT license. See [LICENSE](https://github.com/danfimov/django-tinymce4-plus/blob/main/LICENSE)\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.",
    "version": "1.9.1",
    "project_urls": {
        "Changelog": "https://github.com/danfimov/django-tinymce4-plus/docs/changelog.md",
        "Documentation": "http://dafimov.github.io/django-tinymce4-plus",
        "Homepage": "https://github.com/danfimov/django-tinymce4-plus",
        "Issues": "http://dafimov.github.io/django-tinymce4-plus/issues",
        "Repository": "https://github.com/danfimov/django-tinymce4-plus"
    },
    "split_keywords": [
        "django",
        " wysiwyg",
        " editor",
        " widget",
        " tinymce"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea172c7587dea9c8f2652fd2586a9966a50f0d305077e95474ba282ef8c2221b",
                "md5": "2f1713683c88304d7a3b44b6c77692de",
                "sha256": "ce222a6dd67477d936cafb3058e37d4dabb42986fcd5f9c0acc0e127cfebbe36"
            },
            "downloads": -1,
            "filename": "django_tinymce4_plus-1.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f1713683c88304d7a3b44b6c77692de",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1156415,
            "upload_time": "2024-12-08T09:42:52",
            "upload_time_iso_8601": "2024-12-08T09:42:52.728542Z",
            "url": "https://files.pythonhosted.org/packages/ea/17/2c7587dea9c8f2652fd2586a9966a50f0d305077e95474ba282ef8c2221b/django_tinymce4_plus-1.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1620f64a37feb7298874dceb62a77d7f85bcc4c0b42045ac00024b5da04409b4",
                "md5": "0422406afc5c69e59aa76ea9cfe1082a",
                "sha256": "01b714e642382caea1d717d0c917797c89aef4effdb5543f358f226776059b76"
            },
            "downloads": -1,
            "filename": "django_tinymce4_plus-1.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0422406afc5c69e59aa76ea9cfe1082a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 924246,
            "upload_time": "2024-12-08T09:42:54",
            "upload_time_iso_8601": "2024-12-08T09:42:54.948899Z",
            "url": "https://files.pythonhosted.org/packages/16/20/f64a37feb7298874dceb62a77d7f85bcc4c0b42045ac00024b5da04409b4/django_tinymce4_plus-1.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-08 09:42:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "danfimov",
    "github_project": "django-tinymce4-plus",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "django-tinymce4-plus"
}
        
Elapsed time: 0.39348s