Issue #1738Opened January 22, 2019by cnaa970 reactions

[Bug] Table cell(td, th) resize error

Question

Hello. I'm working on Table feature with this awesome project grapesjs.

Problem

  1. I added table component on canvas.
  2. In ComponentTableBody.js, change default rows and columns options.
  3. In ComponentTableCell.js, add a resizable options on cell component.
  4. then In order to make resizing cell feature, but It doesn't work.

2019-01-22 14-06-46 2019-01-22 14_09_43

Description of problem

Then when I handle resizing cell, then It looks update css class, but didn't updated on view. Because of the default css class of cell component has only one class named 'cell'.

For the other hand, In order to change table column resize, colgroup and col is standard in HTML. and grapesjs looks to need a colgroup and col component.

My suggestion

  1. Add a indexed css class for each cell by default.
  2. Add a new components, colgroup and col element.
  3. In SelectComponent, add a conditional statements for resizing cell.

2019-01-22 14-10-55 2019-01-22 14_12_44


If you don't mind, I want to contribute with Pull Request.

Answers (2)

artfJanuary 22, 20190 reactions

The real problem here is the class actually, so I'm ok with removing them from the core (they are actually useless here), but I'd avoid other table-related components.

lock[bot]January 24, 20200 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.