From ae83ef749fa552d58e7ddf3ce5a516c8bd642f0e Mon Sep 17 00:00:00 2001 From: Jure Grabnar Date: Tue, 24 Sep 2019 12:44:00 +0200 Subject: [PATCH] Add tables functionality in tinymce Close SCI-3821 --- app/assets/javascripts/sitewide/tiny_mce.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/sitewide/tiny_mce.js b/app/assets/javascripts/sitewide/tiny_mce.js index de9c146ff..86a415a74 100644 --- a/app/assets/javascripts/sitewide/tiny_mce.js +++ b/app/assets/javascripts/sitewide/tiny_mce.js @@ -38,9 +38,9 @@ var TinyMCE = (function() { tinyMCE.init({ cache_suffix: '?v=4.9.3', // This suffix should be changed any time library is updated selector: selector, - menubar: 'file edit view insert format', - toolbar: 'undo redo restoredraft | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link | forecolor backcolor | customimageuploader | codesample', - plugins: 'autosave autoresize customimageuploader link advlist codesample autolink lists charmap hr anchor searchreplace wordcount visualblocks visualchars insertdatetime nonbreaking save directionality paste textcolor placeholder colorpicker textpattern', + menubar: 'file edit view insert format table', + toolbar: 'undo redo restoredraft | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link | forecolor backcolor | customimageuploader | codesample | table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol ', + plugins: 'autosave autoresize customimageuploader link advlist codesample autolink lists charmap hr anchor searchreplace wordcount visualblocks visualchars insertdatetime nonbreaking save directionality paste textcolor placeholder colorpicker textpattern table', autoresize_bottom_margin: 20, codesample_languages: [ { text: 'R', value: 'r' },