Django-tinymce full featured in admin

8.9k views Asked by At

I set up django-tinymce to work with admin just like the docs described

in settings

INSTALLED_APPS = [ ..., 'tinymce',]

in models I added

from tinymce.models import HTMLField
content = HTMLField()

and in urls

urlpatterns = [ ...., url(r'^tinymce/', include('tinymce.urls')),]

But I can not figure out how to add icons and plugins ! I did a lot of research and I could not find anything useful.

I need a Full Featured editor.

2

There are 2 answers

1
Pulkit Pahwa On BEST ANSWER

TINYMCE is great. But at times, it fails to send input back to the server.

One of the alternatives to TINYMCE is django-summernote, which is easy to setup and use.

Check django-summernote here: https://github.com/summernote/django-summernote

1
Ohad the Lad On

You are missing some configurations settings .py

TINYMCE_JS_URL = 'http://debug.example.org/tiny_mce/tiny_mce_src.js'
TINYMCE_DEFAULT_CONFIG = {
    'plugins': "table,spellchecker,paste,searchreplace",
    'theme': "advanced",
    'cleanup_on_startup': True,
    'custom_undo_redo_levels': 10,
}
TINYMCE_SPELLCHECKER = True
TINYMCE_COMPRESSOR = True

this is the example given in the docs...try it out http://django-tinymce.readthedocs.io/en/latest/installation.html