[Bug] Table cell(td, th) resize error
Question
Hello. I'm working on Table feature with this awesome project grapesjs.
Problem
- I added table component on canvas.
- In
ComponentTableBody.js, change default rows and columns options. - In ComponentTableCell.js, add a
resizableoptions on cell component. - then In order to make resizing cell feature, but It doesn't work.

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
- Add a indexed css class for each cell by default.
- Add a new components,
colgroupandcolelement. - In SelectComponent, add a conditional statements for resizing cell.

If you don't mind, I want to contribute with Pull Request.
Answers (2)
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.
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.
Issue #1951
[QUESTIONS] change or add event on add component from block
is it possible ?, change the drag and drop event to on click when adding a new component, I want to add components by clicking the block th...
Issue #846
Error when I tried to add rows to a table
Hi guys I'm starting to use Grapesjs and I have a problem, I am trying to add 3 new commands to create tables, add rows and cells, the tabl...
Issue #1095
[FEATURE REQUEST] Preselect a trait select option
Hello, I'd like you to add to the options array of a select trait a third parameter next to 'name' and 'value', which is 'selected' in orde...
Issue #1113
[QUESTIONS] New trait type is not working with rendered components?
Hello, thanks for the great framework. I'm trying to apply this to my project. I want to add a new trait for existing LINK '<a>' component....
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.