fix(Quill): Add class table-bordered to tables
This commit is contained in:
parent
a65e5aeec9
commit
f89fd5c6ac
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue