app/soc/views/helper/widgets.py
changeset 2013 eda2589a90e6
parent 1997 55cf79b8cffe
child 2077 fd2e83a297c7
equal deleted inserted replaced
2012:852418be1719 2013:eda2589a90e6
    71 
    71 
    72   You can set TinyMCE widget for particular form field using code below:
    72   You can set TinyMCE widget for particular form field using code below:
    73     class ExampleForm(helper.forms.BaseForm):
    73     class ExampleForm(helper.forms.BaseForm):
    74       content = forms.fields.CharField(widget=helper.widgets.TinyMCE())
    74       content = forms.fields.CharField(widget=helper.widgets.TinyMCE())
    75   
    75   
    76   You can include tiny_mce_src.js in your template using:
    76   You can include tiny_mce.js in your template using:
    77     {% block scripts %}
    77     {% block scripts %}
    78   	  <script type="text/javascript" src="/tiny_mce/tiny_mce_src.js"></script>
    78   	  <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
    79     {% endblock %}
    79     {% endblock %}
    80   """ 
    80   """ 
    81 
    81 
    82   features1 = ("bold,italic,underline,strikethrough,blockquote,|,"
    82   features1 = ("bold,italic,underline,strikethrough,blockquote,|,"
    83               ",justifyleft,justifycenter,justifyright,justifyfull,|,"
    83               ",justifyleft,justifycenter,justifyright,justifyfull,|,"