Integrate TinyMCE 4 in Django projects.
Project description
django-tinymce-4
Integrate TinyMCE4 in Django projects with Django Filebrowser
Features
Support only TinyMCE4.
Support Django Filebrowser.
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
Create an issue to discuss about your idea
Fork it
Create your feature branch: git checkout -b new-feature
Commit your changes: git commit -am ‘Add some feature’
Push to the branch: git push origin new-feature
Create a new Pull Request
Profit!
Setup environment
Install npm packages
cd django-tinymce-4/
npm install
Run example
cd django-tinymce-4/example/tiny_example/
python manage.py runserver
Build css
gulp css
Branches
master - latest release branch
develop - development branch for new releases
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-tinymce-4-0.0.22.tar.gz
.
File metadata
- Download URL: django-tinymce-4-0.0.22.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76b7e1e9a6fb5984cc0ebeac1e20fe134043bf3a14527906b32f975dd6f5f4cd |
|
MD5 | ec259f2a1a7ca17391c13a039b9d5476 |
|
BLAKE2b-256 | 7c475c949649eeb004a93fcfa11cfb39c0b18c45b5300204db4ca30cc3ccd71e |