From 63df5e6368d68d011e5feb8f0ae25a692c0b9269 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 28 Sep 2017 14:03:25 +0530 Subject: Add new js text editor for sending emails --- yaksh/static/yaksh/js/course.js | 9 +++++---- yaksh/templates/yaksh/course_detail.html | 4 +--- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'yaksh') diff --git a/yaksh/static/yaksh/js/course.js b/yaksh/static/yaksh/js/course.js index 8fb2773..6807cf4 100644 --- a/yaksh/static/yaksh/js/course.js +++ b/yaksh/static/yaksh/js/course.js @@ -37,10 +37,11 @@ $(".reject").change( function(){ }); $(function() { - $('textarea#email_body').froalaEditor({ - heightMin: 200, - heightMax: 200 - }) + tinymce.init({ + selector: 'textarea#email_body', + max_height: 200, + height: 200 + }); }); $("#send_mail").click(function(){ diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index bcada42..d8aeb2e 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -6,13 +6,11 @@ {% block script %} - + {% endblock %} {% block css %} - - {% endblock %} {% block content %}
-- cgit