diff options
author | adityacp | 2020-02-20 16:11:05 +0530 |
---|---|---|
committer | adityacp | 2020-02-20 16:11:05 +0530 |
commit | 0d189e0156741685e6f6f1c605bf99b44d082b0b (patch) | |
tree | 8d6aead87df9da2cb33d48625b591dc2a0f68367 /yaksh/static | |
parent | fcfd868e44f0c768d05ef0dd58c72e46f9cbee61 (diff) | |
download | online_test-0d189e0156741685e6f6f1c605bf99b44d082b0b.tar.gz online_test-0d189e0156741685e6f6f1c605bf99b44d082b0b.tar.bz2 online_test-0d189e0156741685e6f6f1c605bf99b44d082b0b.zip |
Change complete, grade_user template and add_question js
- Add tinymce js editor for question description
- Add safe option in grade user while showing question description
- Add generice title in the complete template
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/add_question.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/add_question.js b/yaksh/static/yaksh/js/add_question.js index 4d134cd..6cd8b48 100644 --- a/yaksh/static/yaksh/js/add_question.js +++ b/yaksh/static/yaksh/js/add_question.js @@ -161,6 +161,19 @@ function textareaformat() $(this).find('textarea').addClass("form-control"); $(this).find('input[type=number]').addClass("form-control"); }); + + $(function() { + tinymce.init({ + selector: 'textarea#id_description', + setup : function(ed) { + ed.on('change', function(e) { + tinymce.triggerSave(); + }); + }, + max_height: 200, + height: 200 + }); + }); } function autosubmit() |