From eac52e0198000d96b4c84f9fa6b63ea50cc59f1d Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 3 Nov 2020 11:32:26 +0530 Subject: Multiple changes - Add tinymce editor to the question description in lesson quiz - Fix katex rendering in the lesson quiz questions - Remove unncessary preview description view function - Keep the fixed height for the lesson table of contents div --- yaksh/forms.py | 3 ++- yaksh/templates/yaksh/add_lesson.html | 10 +++++----- yaksh/templates/yaksh/add_video_quiz.html | 6 +++--- yaksh/templates/yaksh/show_lesson_quiz.html | 9 ++++++--- yaksh/templates/yaksh/show_toc.html | 28 +++++++++++++++------------- yaksh/test_views.py | 14 -------------- yaksh/urls.py | 2 -- yaksh/views.py | 13 ------------- 8 files changed, 31 insertions(+), 54 deletions(-) (limited to 'yaksh') diff --git a/yaksh/forms.py b/yaksh/forms.py index 091505d..d57d388 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -715,7 +715,8 @@ class VideoQuizForm(forms.ModelForm): ) self.fields['type'].initial = question_type self.fields['description'].widget.attrs.update( - {'class': form_input_class, 'placeholder': 'Description'} + {'class': form_input_class, 'placeholder': 'Description', + 'id': 'que_description'} ) self.fields['timer'].widget.attrs.update( {'class': form_input_class, 'placeholder': 'Quiz Time'} diff --git a/yaksh/templates/yaksh/add_lesson.html b/yaksh/templates/yaksh/add_lesson.html index 329a8e0..f05fbe0 100644 --- a/yaksh/templates/yaksh/add_lesson.html +++ b/yaksh/templates/yaksh/add_lesson.html @@ -25,8 +25,8 @@ {{error}} {% endif %} -