summaryrefslogtreecommitdiff
path: root/static/website/templates/new-question.html
diff options
context:
space:
mode:
authorJayaram Pai2013-12-08 20:43:40 +0530
committerJayaram Pai2013-12-08 20:43:40 +0530
commitb596364cf3f871887cce519291b684341cc5c014 (patch)
tree48dcb9366be1f1110f2fda27afa6485b6c3bdb64 /static/website/templates/new-question.html
parent41e5496301cd02bff34dad877d20b2dd30349866 (diff)
downloadFOSSEE-Forum-b596364cf3f871887cce519291b684341cc5c014.tar.gz
FOSSEE-Forum-b596364cf3f871887cce519291b684341cc5c014.tar.bz2
FOSSEE-Forum-b596364cf3f871887cce519291b684341cc5c014.zip
added nicEdit / on-the-fly question edit
Diffstat (limited to 'static/website/templates/new-question.html')
-rw-r--r--static/website/templates/new-question.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/static/website/templates/new-question.html b/static/website/templates/new-question.html
index 81da5cf..70d8349 100644
--- a/static/website/templates/new-question.html
+++ b/static/website/templates/new-question.html
@@ -5,6 +5,7 @@
<h4>
<span class="glyphicon glyphicon-pencil">
</span> Create a new question . . .
+ user is {{ user }}
</h4>
<hr>
<form role="form" action="" method="POST">{% csrf_token %}
@@ -46,4 +47,14 @@
<input class="btn btn-success" type="submit" value="Submit Question">
{% endwith %}
</form>
+
+<script src="{% static 'website/js/nicEdit.js' %}" type="text/javascript"></script>
+<script type="text/javascript">
+bkLib.onDomLoaded(function() {
+ new nicEditor({
+ iconsPath: "{% static 'website/js/nicEditorIcons.gif' %}",
+ buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image']
+ }).panelInstance('id_body');
+});
+</script>
{% endblock %}