devsofttech_hms_ci4/app/Views/Setting/Template
DevSoftTech Server 8461cae263 Fix: CKEditor console error - remove unavailable pagebreak plugin
ERROR: Uncaught TypeError: can't access property 'icons', h is null
FILE: ckeditor.js:267

ROOT CAUSE:
Previous commit added 'extraPlugins: justify,pagebreak' to CKEditor config.
The pagebreak plugin is NOT included in the standard CKEditor build being used.
CKEditor tried to load pagebreak plugin, failed, and threw null reference error.

SOLUTION:
1. Removed 'PageBreak' button from insert toolbar
2. Removed 'extraPlugins: justify,pagebreak' config line
3. Justify plugin is CORE plugin - included by default, no need to load explicitly
4. Text alignment buttons (JustifyLeft, Center, Right, Block) still work perfectly

WHAT STILL WORKS:
✅ Text alignment buttons (user's original request)
✅ All other enhanced buttons (Strike, Subscript, Superscript, Image, ShowBlocks)
✅ No console errors

WHAT WAS REMOVED:
❌ PageBreak button (was bonus feature, not in CKEditor build)

TESTING: Reload /setting/template/discharge_templates - no console errors
2026-06-07 11:14:48 +05:30
..
diagnosis_print_settings.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
discharge_templates.php Fix: CKEditor console error - remove unavailable pagebreak plugin 2026-06-07 11:14:48 +05:30
document_print_settings.php Add placeholder panel to document print settings; autocomplete off on med inputs; localStorage medicine cache 2026-04-09 03:43:53 +05:30
index.php Refine OPD template builder UI and preview behavior 2026-06-05 03:34:08 +05:30
ipd_document_templates.php Make IPD forms dynamic and stop stale OPD refresh polling 2026-04-08 11:41:33 +05:30