appflowy-editor
appflowy-editor copied to clipboard
[Bug] Wrong table test
Bug Description
{ 'type': TableBlockKeys.type, 'data': { TableBlockKeys.colsLen: 2, TableBlockKeys.rowsLen: 2, TableBlockKeys.colDefaultWidth: 60, TableBlockKeys.rowDefaultHeight: 50, TableBlockKeys.colMinimumWidth: 30,
}, 'children': [ { 'type': TableCellBlockKeys.type, 'data': { TableCellBlockKeys.colPosition: 0, TableCellBlockKeys.rowPosition: 0, TableCellBlockKeys.width: 35,
},
'children': [
{
'type': 'heading',
'data': {
'level': 2,
'delta': [
{
'insert': 'a'
},
],
},
},
],
},
{
'type': TableCellBlockKeys.type,
'data': {
TableCellBlockKeys.colPosition: 0,
TableCellBlockKeys.rowPosition: 1,
},
'children': [
{
'type': 'paragraph',
'data': {
'delta': [
{
'insert': 'b',
'data': {
'bold': true
},
}
],
},
},
],
},
{
'type': TableCellBlockKeys.type,
'data': {
TableCellBlockKeys.colPosition: 1,
TableCellBlockKeys.rowPosition: 0,
},
'children': [
{
'type': 'paragraph',
'data': {
'delta': [
{
'insert': 'c',
'data': {
'italic': true
},
}
],
},
},
],
},
{
'type': TableCellBlockKeys.type,
'data': {
TableCellBlockKeys.colPosition: 1,
TableCellBlockKeys.rowPosition: 1,
},
'children': [
{
'type': 'paragraph',
'data': {
'delta': [
{
'insert': 'd'
},
],
},
}
],
}
],
}
How to Reproduce
Test for the is not added in proper way the attribute converted to data in delta json
Expected Behavior
table cell childrenn should have attibute as their styles
Operating System
all
AppFlowy Editor Version(s)
main branch
Screenshots
No response
Additional Context
No response