Use minified tiny_mce.js javascript file instead of tiny_mce_src.js which is 100kB larger.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/templates/soc/base.html Wed Mar 25 18:56:31 2009 +0000
+++ b/app/soc/templates/soc/base.html Wed Mar 25 22:42:35 2009 +0000
@@ -79,7 +79,7 @@
<script type='text/javascript' src='/jquery/jquery-thickbox.js'></script>
{% endif %}
{% if uses_tinymce %}
- <script type="text/javascript" src="/tiny_mce/tiny_mce_src.js"></script>
+ <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
{% endif %}
{% if uses_jq_progressbar %}
<script type="text/javascript" src="/jquery/jquery-progressbar.js"></script>
--- a/app/soc/views/helper/widgets.py Wed Mar 25 18:56:31 2009 +0000
+++ b/app/soc/views/helper/widgets.py Wed Mar 25 22:42:35 2009 +0000
@@ -73,9 +73,9 @@
class ExampleForm(helper.forms.BaseForm):
content = forms.fields.CharField(widget=helper.widgets.TinyMCE())
- You can include tiny_mce_src.js in your template using:
+ You can include tiny_mce.js in your template using:
{% block scripts %}
- <script type="text/javascript" src="/tiny_mce/tiny_mce_src.js"></script>
+ <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
{% endblock %}
"""