From d1de6058253c5df8984ac36d9de33396a368edce Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Thu, 1 Oct 2020 14:42:41 +0530 Subject: Remove tinymce editor from add_lesson page --- yaksh/static/yaksh/js/lesson.js | 14 -------------- yaksh/templates/yaksh/add_lesson.html | 1 - 2 files changed, 15 deletions(-) (limited to 'yaksh') diff --git a/yaksh/static/yaksh/js/lesson.js b/yaksh/static/yaksh/js/lesson.js index 23446dc..6eaf6c6 100644 --- a/yaksh/static/yaksh/js/lesson.js +++ b/yaksh/static/yaksh/js/lesson.js @@ -90,18 +90,4 @@ $(document).ready(function(){ } $(this).next('.custom-file-label').html(files.join(', ')); }); - $(function() { - tinymce.init({ - selector: 'textarea#id_description', - setup : function(ed) { - ed.on('change', function(e) { - tinymce.triggerSave(); - }); - }, - max_height: 400, - height: 400, - plugins: "image code link", - convert_urls: false - }); - }); }); diff --git a/yaksh/templates/yaksh/add_lesson.html b/yaksh/templates/yaksh/add_lesson.html index 49675f2..ae68af7 100644 --- a/yaksh/templates/yaksh/add_lesson.html +++ b/yaksh/templates/yaksh/add_lesson.html @@ -9,7 +9,6 @@ - -- cgit