Update utils-admin.js with tinymce

This commit is contained in:
DariusIII
2018-05-04 10:54:27 +02:00
parent c4296e0c14
commit d54c7298a8
2 changed files with 22 additions and 3 deletions
+2
View File
@@ -1,3 +1,5 @@
2018-05-04 DariusIII
* Chg: Update utils-admin.js with tinymce
2018-05-03 DariusIII
* Chg: Adjust code in template files
* Chg: Add nntmux:reset-truncate command to artisan console
+20 -3
View File
@@ -665,8 +665,6 @@ jQuery(function($){
});
//enable Custom checkboxes for fix crap releases
function enableFixCrapCustom(){
var inputs = document.getElementsByName('fix_crap_opt');
@@ -684,4 +682,23 @@ function enableFixCrapCustom(){
checks[t].readonly = true;
}
}
}
}
/** ****** tinyMCE ************************* **/
tinyMCE.init({
selector: 'textarea#addMessage',
theme : "modern",
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
'save table contextmenu directionality emoticons template paste textcolor code'
],
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
toolbar: 'insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code',
fontsize_formats: "8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",
mode : "exact",
relative_urls : false,
remove_script_host : false,
convert_urls : true
});