BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

The colspan and rowspan of the td tag of the table do not appear to be in effect

Open yangshen2000 opened this issue 1 year ago • 7 comments

hi

yangshen2000 avatar Jul 30 '24 07:07 yangshen2000

I'm trying to merge the cells in the table, but I'm having a problem

yangshen2000 avatar Jul 30 '24 07:07 yangshen2000

Hi, this is a known issue - made a fix in #856 but waiting to merge as it changes how table blocks are represented in the API, so we will need to give users a way to migrate their existing documents to the new version.

matthewlipski avatar Aug 07 '24 14:08 matthewlipski

Thank you for your reply, When will it be done?

yangshen2000 avatar Aug 09 '24 08:08 yangshen2000

   <table style="min-width:1000px">
          <tr>
            <th colspan="1" rowspan="1" colwidth="100">123</th>
            <th colspan="1" rowspan="1" colwidth="120">123</th>
          </tr>
          <tr>
            <td colspan="2" colwidth="80" rowspan="1">123</td>
          </tr>
          </table>

#856 colwidth works , but colspan="2" does’t work

yangshen2000 avatar Aug 09 '24 08:08 yangshen2000

Hi, this is a known issue - made a fix in #856 but waiting to merge as it changes how table blocks are represented in the API, so we will need to give users a way to migrate their existing documents to the new version.

😁

yangshen2000 avatar Aug 13 '24 02:08 yangshen2000

Ah sorry, I misread the title of your post. You're right, #856 only fixes the row widths, not the spans. We're taking a step back from this PR right now, but I'll see about fixing the spans when we get back to it.

matthewlipski avatar Aug 27 '24 13:08 matthewlipski

thanks

yangshen2000 avatar Aug 29 '24 03:08 yangshen2000

This will be fixed with: https://github.com/TypeCellOS/BlockNote/pull/1429

nperez0111 avatar Feb 17 '25 20:02 nperez0111

Resolved with https://github.com/TypeCellOS/BlockNote/pull/1429

nperez0111 avatar Mar 04 '25 14:03 nperez0111