Skip to main content

django-tinymce-4

https://travis-ci.com/ITCase-django/django-tinymce-4.svg?branch=master

Integrate TinyMCE4 in Django projects with Django Filebrowser

Features

Install

pip install django-tinymce-4

Add applications to INSTALLED_APPS in settings.py for your project (order is important):

INSTALLED_APPS = (
    'tinymce_4',
    'grappelli',
    'filebrowser',
    'django.contrib.admin',
)

Add the Django Filebrowser site to your url-patterns (before any admin-urls):

url(r'^grappelli/', include('grappelli.urls')),
url(r'^admin/', include([
    url(r'^', include(admin.site.urls)),
    url(r'^filebrowser/', include(fb_site.urls)),
])),

Usage

from tinymce_4.fields import TinyMCEModelField
from django.db import models

class ModelFoo(models.Model):
    content = TinyMCEModelField('Foo content')

Custom Settings

  • Base Settings: /tinymce_4/static/tinymce_4/settings/full/setings.js

  • Menu: /tinymce_4/static/tinymce_4/settings/full/menu.js

  • Plugins: /tinymce_4/static/tinymce_4/settings/full/plugins.js

  • External plugins: /tinymce_4/static/tinymce_4/settings/full/external_plugins.js

  • Templates: /tinymce_4/static/tinymce_4/settings/full/templates.js

Demo

cd django-tinymce-4/example/
pip install -r requirements.txt
python manage.py runserver

Contributing

  1. Create an issue to discuss about your idea

  2. Fork it

  3. Create your feature branch: git checkout -b new-feature

  4. Commit your changes: git commit -am ‘Add some feature’

  5. Push to the branch: git push origin new-feature

  6. Create a new Pull Request

  7. Profit!

Setup environment

Install npm packages

cd django-tinymce-4/
npm install

Run example

cd django-tinymce-4/example
python manage.py runserver

Build css

gulp css

Branches

  • master - latest release branch

  • develop - development branch for new releases

Release files for django-tinymce-4 0.0.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tinymce-4 0.0.27
File Size Uploaded
django-tinymce-4-0.0.27.tar.gz 1.4 MB Details

Release files / django-tinymce-4-0.0.27.tar.gz

Download URL django-tinymce-4-0.0.27.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c4ffb343353cd61726bf775eef8d6a8002ff2c3ac23f31e647335327a9c1f47c
BLAKE2b-256 checksum
How to use checksums
fe1ac09c2743fb1581c602faf6d23e0ed831732ef18d9cdda12ee8c65f01ca8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

0.0.27 This release

1 release file

0.0.26

1 release file

0.0.25

1 release file

0.0.24

1 release file

0.0.23

1 release file

0.0.22

1 release file

0.0.21

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page