A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jazzband/django-tinymce below:

jazzband/django-tinymce: TinyMCE integration for Django

django-tinymce is a Django application that contains a widget to render a form field as a TinyMCE editor.

It supports Python 3.9+ and Django 4.2 to 5.2. Using TinyMCE 7.8.0.

Install django-tinymce:

$ pip install django-tinymce

Add tinymce to INSTALLED_APPS in settings.py for your project:

INSTALLED_APPS = (
    ...
    'tinymce',
)

Add tinymce.urls to urls.py for your project:

urlpatterns = [
    ...
    path('tinymce/', include('tinymce.urls')),
]

In your code:

from django.db import models
from tinymce.models import HTMLField

class MyModel(models.Model):
    ...
    content = HTMLField()

django-tinymce uses staticfiles so everything should work as expected, different use cases (like using widget instead of HTMLField) and other stuff is available in documentation.

https://django-tinymce.readthedocs.org/

Use github issues https://github.com/jazzband/django-tinymce/issues

Originally written by Joost Cassee.

This program is licensed under the MIT License (see LICENSE.txt)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4