From c5ed358d35890849dbbde2582cee49c93ac08885 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 28 May 2026 00:31:25 +0545 Subject: [PATCH] feat(templates/pages/tickets): increase textarea container height and extend rich text toolbar options Increase container height from 300px to 400px for better visibility; add numerous formatting options to the dropdown (color, background, script sub/super, extended headers, check list, indent controls, direction, etc.) to improve editing experience. New Features: - Added new dropdown items: color, background, script sub, script super, extended header levels, check list, indent controls, direction. - Expanded list options with bullet check and additional utilities. Enhancements: - Enlarged description field container to accommodate taller content. Bug Fixes: - None --- templates/pages/tickets/ticket_form.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/pages/tickets/ticket_form.html b/templates/pages/tickets/ticket_form.html index 63b6470..b8867e7 100644 --- a/templates/pages/tickets/ticket_form.html +++ b/templates/pages/tickets/ticket_form.html @@ -24,7 +24,7 @@ document.addEventListener('DOMContentLoaded', function() { const descField = document.querySelector('textarea[name="description"]'); if (descField) { const container = document.createElement('div'); - container.style.height = '300px'; + container.style.height = '400px'; container.className = 'mb-4 rounded-xl'; descField.parentNode.insertBefore(container, descField); descField.style.display = 'none'; @@ -33,10 +33,15 @@ document.addEventListener('DOMContentLoaded', function() { modules: { toolbar: [ ['bold', 'italic', 'underline', 'strike'], - [{ 'header': [1, 2, 3, false] }], - [{ 'list': 'ordered'}, { 'list': 'bullet' }], - ['link', 'code-block', 'blockquote'], + [{ 'color': [] }, { 'background': [] }], + [{ 'script': 'sub'}, { 'script': 'super' }], + [{ 'header': [1, 2, 3, 4, 5, 6, false] }], + [{ 'list': 'ordered'}, { 'list': 'bullet' }, { 'list': 'check' }], + [{ 'indent': '-1'}, { 'indent': '+1' }], + [{ 'direction': 'rtl' }], [{ 'align': [] }], + ['link', 'image', 'video'], + ['blockquote', 'code-block'], ['clean'] ] }