Cory Gwin
Cory Gwin

Reputation: 1243

Grappelli Tinymce missing theme

I an setting up tinymce, filebrowser, zinnia, and Grappelli for the first time. I think I have everything setup properly, but it seems that I am missing some files and I am not sure where I can find them. I am getting 400 errors on the following.

"GET /static/tiny_mce/themes/advanced/skins/grappelli/content.css HTTP/1.1" 404 
"GET /static/tiny_mce/themes/advanced/skins/grappelli/ui.css HTTP/1.1" 404 1832
"GET /static/tiny_mce/plugins/grappelli/editor_plugin.js HTTP/1.1" 404 1820
"GET /static/tiny_mce/plugins/grappelli_contextmenu/editor_plugin.js HTTP/1.1" 404 1856

For some reason the pip installed version of tiny_mce did not include these file.

UPDATE:

I now have the theme working, it was missing from my downloaded version for whatever reason. I am still getting 404's on

"GET /static/tiny_mce/plugins/grappelli/editor_plugin.js HTTP/1.1" 404 1820
"GET /static/tiny_mce/plugins/grappelli_contextmenu/editor_plugin.js HTTP/1.1" 404 1856

I don't seem to have any folder in the tinymce plugin folder called grappeli. I have ran the ./manage.py collectstatic and know all my files are in the proper location.

Thanks, CG

Upvotes: 1

Views: 986

Answers (1)

Bernhard Vallant
Bernhard Vallant

Reputation: 50786

The grappelli skings for tinymce come with grappelli. You also should load the js files for tinymce coming with grappelli, so tinymce will find the theme files relatively to the tinymce js.

You can achieve this by pointing TINYMCE_JS_URL in your settings.py file to the right url, eg. TINYMCE_JS_URL = STATIC_URL +'grappelli/tinymce/jscripts/tiny_mce/tiny_mce.js'. Make sure to run collectstatic and that your static files settings are correct!

Upvotes: 1

Related Questions