diff options
author | CruiseDevice | 2020-10-01 14:59:18 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-10-08 10:46:44 +0530 |
commit | 78eb6dc42e73551c2bb9972e53a2d7dd3b81e7d7 (patch) | |
tree | b00c763f1ef38a3abf43f4f337d97f67ae04337a /yaksh/static | |
parent | edf3b4c5d9afdaeb7c6d8e45484401bdce26e23c (diff) | |
download | online_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.js | 18 |
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); |