2012-07-08 16:23:39 +02:00
|
|
|
{% extends "templates/base.html" %}
|
|
|
|
|
2012-07-22 10:47:24 +02:00
|
|
|
{% block head %}
|
|
|
|
<script type="text/javascript" src="/static/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
tinyMCE.init({
|
|
|
|
// General options
|
|
|
|
mode : "textareas",
|
|
|
|
theme : "advanced",
|
|
|
|
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
|
|
|
|
editor_selector : "mceAdvanced",
|
|
|
|
|
|
|
|
// Theme options
|
|
|
|
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
|
|
|
|
theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
|
|
|
|
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,charmap,emotions,iespell,media,advhr",
|
|
|
|
// theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
|
|
|
|
theme_advanced_toolbar_location : "top",
|
|
|
|
theme_advanced_toolbar_align : "left",
|
|
|
|
theme_advanced_statusbar_location : "bottom",
|
|
|
|
theme_advanced_resizing : true,
|
|
|
|
width: "100%",
|
|
|
|
height: "400"
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2012-07-08 16:23:39 +02:00
|
|
|
{% block content %}
|
|
|
|
<form action="/article/edit/{{ article_id }}" method="post">{% csrf_token %}
|
|
|
|
{{ form.as_p }}
|
2012-07-22 10:47:24 +02:00
|
|
|
<textarea name="content" class="mceAdvanced">{{ content }}</textarea>
|
|
|
|
<input type="submit" name="edit" value="Edit" /><input type="submit" name="preview" value="Preview" /><input type="submit" name="cancel" value="Cancel" />
|
2012-07-08 16:23:39 +02:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|