Enable Summernote for ticket replies

master
Skylar Ittner 7 years ago
parent 932056f731
commit f209266260

@ -623,22 +623,15 @@ function hesk_printCustomerReplyForm($reopen = 0)
<?php if ($modsForHesk_settings['rich_text_for_tickets_for_customers']): ?> <?php if ($modsForHesk_settings['rich_text_for_tickets_for_customers']): ?>
<script type="text/javascript"> <script type="text/javascript">
/* <![CDATA[ */ /* <![CDATA[ */
tinyMCE.init({ $(document).ready(function() {
mode: "textareas", $('.htmlEditor').summernote({
editor_selector: "htmlEditor", height: 200,
elements: "content", toolbar: [
theme: "advanced", ['style', ['bold', 'italic', 'underline', 'clear']],
convert_urls: false, ['font', ['strikethrough', 'superscript', 'subscript']],
plugins: "autolink", ['para', ['ul', 'ol']]
]
theme_advanced_buttons1: "cut,copy,paste,|,undo,redo,|,formatselect,fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull", });
theme_advanced_buttons2: "sub,sup,|,charmap,|,bullist,numlist,|,outdent,indent,insertdate,inserttime,preview,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,link,unlink,anchor,image,cleanup",
theme_advanced_buttons3: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true
}); });
/* ]]> */ /* ]]> */
</script> </script>

Loading…
Cancel
Save