Move tinyMCE init to utils-admin.js

This commit is contained in:
DariusIII
2016-09-22 09:30:57 +02:00
parent 9708e44921
commit 6d545c8244
3 changed files with 20 additions and 17 deletions
+2
View File
@@ -1,3 +1,5 @@
2016-09-22 DariusIII
* Chg: Move tinyMCE init to utils-admin.js
2016-09-21 DariusIII
* Chg: Add installer for NNTmux
2016-09-20 DariusIII
+18
View File
@@ -741,3 +741,21 @@ function enableFixCrapCustom(){
}
}
}
/** ****** tinyMCE ******/
tinyMCE.init({
selector: 'textarea#body',
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"
});
/** ****** end tinyMCE ******/
@@ -128,23 +128,6 @@
<!-- pace -->
<script src="{$smarty.const.WWW_THEMES}/shared/assets/pace/pace.min.js"></script>
<script type="text/javascript">
tinyMCE.init({
selector: 'textarea#body',
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"
});
</script>
</body>
</html>