Use minified tiny_mce.js javascript file instead of tiny_mce_src.js which is 100kB larger.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Wed, 25 Mar 2009 22:42:35 +0000
changeset 2013 eda2589a90e6
parent 2012 852418be1719
child 2014 e6d297dcf7aa
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
app/soc/templates/soc/base.html
app/soc/views/helper/widgets.py
--- 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 %}
   """