Jul 24 - Update Rich-text editor to enhance table editor 4

This commit is contained in:
2026-07-24 11:32:03 -04:00
parent 2e65745aed
commit c4ad6e8ac9
3 changed files with 10 additions and 1 deletions
+5
View File
@@ -149,6 +149,11 @@
var toolbarEl = document.getElementById('editor-toolbar');
var editorEl = document.getElementById('editor');
// Persist alignment as inline `text-align` (style) rather than a Quill CSS
// class, so cell alignment survives the HTML sanitizer and renders on the
// public page with no extra CSS. Must run before the editor is created.
Quill.register(Quill.import('attributors/style/align'), true);
// quill-table-better: resizable columns/rows + a cell menu for alignment,
// borders and background. Registered only if the vendor script loaded.
var hasTables = typeof QuillTableBetter !== 'undefined';