| Issue 34: | TINYMCE_COMPRESSOR = True then the editor shows no toolbar buttons | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1.use the downloaded django-tinymce1.5 and tried to have installed it into
site-package as egg or put it under apps
2.various settings have been checked and found nothing wrong
3.tracked to the result from gziped url and compressor.py, it seems that
compressor.py can not get settings from request.
plugins = split_commas(request.GET.get("plugins", ""))
languages = split_commas(request.GET.get("languages", ""))
themes = split_commas(request.GET.get("themes", ""))
isJS = request.GET.get("js", "") == "true"
compress = request.GET.get("compress", "true") == "true"
suffix = request.GET.get("suffix", "") == "_src" and "_src" or ""
They are all empty.
What is the expected output? What do you see instead?
I expect to see the tiny_mce works correct and the gzip compression works.
The editor doesn't initialize properly
What version of Django are you using? On what operating system?
django1.0.2 on freebsd by vitual-python
What version of django-tinymce are you using?
1.5 release
Please provide any additional information below.
tinymce is from the latest release 3.2.2
I have been investigating this for 4 days and just can't figure out what
problem is.
One thing I am not sure is:
* settings.page_name below to match your tinymce installation as appropriate.
what does that mean, I didn't specify page_name in django's setting,
page_name : '{% url tinymce-compressor %}', the tinymce-compressor was
replaced as /tinymce/compressor/, I suppose this is correct.
I compared the correct result and wrong result by disabling
TINYMCE_COMPRESSOR, I found it has two urls:
http://localhost:1920/tinymce/compressor/
http://localhost:1920/tinymce/compressor/?js=true&diskcache=true&core=true&suffix=&themes=advanced&plugins=table%2Cspellchecker%2Cpaste%2Csearchreplace&languages=zh
instead of:
http://localhost:1920/media/javascript/tiny_mce/tiny_mce_src.js
http://localhost:1920/media/javascript/tiny_mce/langs/zh.js
http://localhost:1920/media/javascript/tiny_mce/themes/advanced/editor_template_src.js
http://localhost:1920/media/javascript/tiny_mce/plugins/table/editor_plugin_src.js
http://localhost:1920/media/javascript/tiny_mce/plugins/spellchecker/editor_plugin_src.js
http://localhost:1920/media/javascript/tiny_mce/plugins/paste/editor_plugin_src.js
http://localhost:1920/media/javascript/tiny_mce/plugins/searchreplace/editor_plugin_src.js
http://localhost:1920/media/javascript/tiny_mce/themes/advanced/langs/zh.js
http://localhost:1920/media/javascript/tiny_mce/themes/advanced/skins/default/ui.css
I can give more information if you need.
Thanks
|
|
,
Apr 06, 2009
How far is the widget initialized? Is it still a textbox or is the TinyMCE toolbar empty? Are you saying it works if you disable the compressor? At first glance nothing in your description stands out as obviously bad.
Status: Accepted
|
|
,
Apr 09, 2009
(No comment was entered for this change.)
Status: MoreInfo
|
|
|
|