Closed npcole closed 5 years ago
Hi, @npcole
quill-better-table
has some conflict with the official table module, so you need to disabled the official table module in editor initialize.
About the Delta format,
quill-delta structure is flat, the data structure between red lines correspond to a col
html tag, every col
will be wrapped with a colgroup
tag. colgroup
tags will be merged in blot's optimize
phase.
Since the checkMerge
api of TableColGroup
always return true
, the colgroup
tags will be mreged into only one colgroup
tag.
In the delta of table, { insert: '\n' }
means that it is a block blot.
{ insert: '\n', attributes: { table-cell-line: { object } } }
means that the bock blot is a instance of TableCellLine blot, and the object is attributes of TableCellLine.
@npcole I am not sure if it will help you ?
I will close this issue~
What do Delta's look like for these tables? How does it differ from the 'official' Quilljs Delta format 2.0 for tables?