summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authorCruiseDevice2020-10-01 14:59:18 +0530
committerankitjavalkar2020-10-08 10:46:44 +0530
commit78eb6dc42e73551c2bb9972e53a2d7dd3b81e7d7 (patch)
treeb00c763f1ef38a3abf43f4f337d97f67ae04337a /yaksh/static
parentedf3b4c5d9afdaeb7c6d8e45484401bdce26e23c (diff)
downloadonline_test-78eb6dc42e73551c2bb9972e53a2d7dd3b81e7d7.tar.gz
online_test-78eb6dc42e73551c2bb9972e53a2d7dd3b81e7d7.tar.bz2
online_test-78eb6dc42e73551c2bb9972e53a2d7dd3b81e7d7.zip
Add tinymce to forum
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/show_toc.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/show_toc.js b/yaksh/static/yaksh/js/show_toc.js
index b628eaa..7d9b68e 100644
--- a/yaksh/static/yaksh/js/show_toc.js
+++ b/yaksh/static/yaksh/js/show_toc.js
@@ -2,6 +2,24 @@ $(document).ready(function() {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
+
+ $(document).ready(() => {
+ $(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
+ });
+ });
+ });
+
player = new Plyr('#player');
var totalSeconds;
store_video_time(contents_by_time);