Export to GitHub

django-tinymce - issue #97

External plugins don't work with TinyMCE Compressor (staticfiles!)


Posted on Mar 17, 2011 by Massive Bird

When using django-tinymce 1.5a1 with the current Django trunk (1.3+), which uses contrib.staticfiles, there is a problem with the compressor if you add TinyMCE plugins in your app directories.

For example, I've got a TinyMCE plugin that overwrites the standard link popup (like advlink) to add autocompletion for the external_link_list field.

The files for this are located at: /myproject/apps/myapp/static/tiny_mce/plugins/myplugin/...

This is to resemble TinyMCE's plugin location from django-tinymce: /tinymce/media/tiny_mce/plugins/someplugin/...

The compressor.get_file_contents function should use django.contrib.staticfiles.finders.find() to find files instead of just concatenating the file pathes with the tinymce plugins directory.

What steps will reproduce the problem? 1. Write a plugin for TinyMCE that overwrites the link popup (like advlink) 2. Place it in one of your apps' static directory 3. Enable TINYMCE_COMPRESSOR 4. Load page with tinymce and call link popup -> standard popup will be called.

What is the expected output? What do you see instead? My plugin should overwrite the link dialog, but with compressor enabled, the wrong plugin is being loaded.

What version of Django are you using? On what operating system? 1.3 trunk, Ubuntu

What version of django-tinymce are you using? 1.5a1

Regards, Fabian

Comment #1

Posted on Feb 15, 2012 by Happy Kangaroo

django-tinymce development (code and issues) moved to github. please reopen this issue on github if it still exists. https://github.com/aljosa/django-tinymce

Status: WontFix

Labels:
Type-Defect Priority-Medium