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/views.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'yaksh/views.py') diff --git a/yaksh/views.py b/yaksh/views.py index 69a7414..da5748b 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -2985,19 +2985,6 @@ def add_module(request, course_id=None, module_id=None): return my_render_to_response(request, "yaksh/add_module.html", context) -@login_required -@email_verified -def preview_html_text(request): - user = request.user - if not is_moderator(user): - raise Http404('You are not allowed to view this page!') - response_kwargs = {} - response_kwargs['content_type'] = 'application/json' - request_data = json.loads(request.body.decode("utf-8")) - html_text = get_html_text(request_data['description']) - return HttpResponse(json.dumps({"data": html_text}), **response_kwargs) - - @login_required @email_verified def get_next_unit(request, course_id, module_id, current_unit_id=None, -- cgit