fix(Quill): Add class table-bordered to tables

This commit is contained in:
Faris Ansari 2018-10-18 14:14:18 +05:30
parent a65e5aeec9
commit f89fd5c6ac

View file

@ -13,7 +13,13 @@ Quill.register(Block, true);
// table
const Table = Quill.import('formats/table-container');
Table.className = 'table';
const superCreate = Table.create.bind(Table);
Table.create = (value) => {
const node = superCreate(value);
node.classList.add('table');
node.classList.add('table-bordered');
return node;
}
Quill.register(Table, true);
// inline style