Jul 24 - Update Rich-text editor to enhance table editor 4
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user