Note that there are some explanatory texts on larger screens.

plurals
  1. POdjango-cms, django flatpages, tiny mce not displaying
    primarykey
    data
    text
    <p>I've implemented both django-cms and flatpages, but can not get tiny_mce to display in either.</p> <p>urls.py</p> <pre><code>(r'^tinymce/', include('tinymce.urls')), from django.conf import settings if settings.DEBUG: urlpatterns += patterns('', (r'^site_media/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), ) </code></pre> <p>settings.py</p> <pre><code>TINYMCE_JS_URL = 'http://127.0.0.1:8000/site_media/js/tiny_mce/tiny_mce.js' TINYMCE_JS_ROOT = 'http://127.0.0.1:8000/site_media/js/tinymce/' TINYMCE_DEFAULT_CONFIG = { 'plugins': "table,spellchecker,paste,searchreplace", 'theme': "advanced", 'cleanup_on_startup': True, 'custom_undo_redo_levels': 10, } TINYMCE_SPELLCHECKER = False TINYMCE_COMPRESSOR = False TINYMCE_FILEBROWSER = True CMS_USE_TINYMCE = True </code></pre> <p>admin.py</p> <pre><code>from django.contrib.flatpages.models import FlatPage from django.contrib.flatpages.admin import FlatPageAdmin #Flatpages class FlatPageAdmin(FlatPageAdmin): class Media: js = ('http://127.0.0.1:8000/js/tiny_mce/tiny_mce.js', 'http://127.0.0.1:8000/js/tiny_mce/textareas.js',) # We have to unregister it, and then reregister admin.site.unregister(FlatPage) admin.site.register(FlatPage, FlatPageAdmin) #django-cms from myprograms.cms.models import Page class PageOptions(admin.ModelAdmin): class Media: js = ('http://127.0.0.1:8000/site_media/js/tiny_mce/tiny_mce.js', 'http://127.0.0.1:8000/site_media/js/tiny_mce/textareas.js') #admin.site.register(Page, PageOptions) </code></pre> <p>In the base.html file</p> <pre><code>&lt;script type="text/javascript" src="{{ MEDIA_URL }}js/tiny_mce/tiny_mce.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="{% url tinymce-js "NAME" %}"&gt;&lt;/script&gt; </code></pre> <p>There are so many different options when accessing the various user groups, docs, etc. I'm not sure what is the correct syntax. The CMS doesn't do me much good without some kind of text editor.</p> <p>Thx </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload