Control table cell (add row, column..)
Hey, @cnaa97 No worries I have added the default commands in the toolbar. I got what I wanted. Thanks for helping. Below is the code
Read full answer below ↓Question
Hello. I want to dev some of feature to control the table. There are many feature for table the other editor like add columns, rows, set color, reset column width for each cell... I just have a dev plan to implementation on below..add a button on block manager this is a dummy table 3x3. each cell have a text component.customize toolbar on cell add a custom command to insert row above.Add a command in order to insert a row But the problem is...Cannot detect the cell's location. above code just add on canvas below. not inside cell.Cannot add multiple components into the cell. It just added only...
Answers (3)
Hey, @cnaa97 No worries I have added the default commands in the toolbar. I got what I wanted. Thanks for helping. Below is the code
The content inside the component definition is for static text (eg. the content is used for editing with Rich Text Editor) so you can't select its element once added, instead you should use components: '<tr data-gjs-type="row" ...'You can always get the selected Component and use its API, so your t...
Thanks for your kindness answer.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2278
[QUESTION]: Simplify dropping columns/rows
What I need is to simplify dropping elements in a way to speed up page creation. So if I drop a column and there is no parent row there, I...
Issue #599
Set Device Height along with Device Width
Hi I want to add new devices with both width and height, Is there any way I can do this? An other issue is that when I give width of device...
Issue #2012
[question] how to add script for all widgets(like protectedCss)
I want to add some functions for all components accessible. when initialize editor, there is a option like protectedCss. Isn't there a way...
Issue #1738
[Bug] Table cell(td, th) resize error
Hello. I'm working on Table feature with this awesome project grapesjs. ProblemI added table component on canvas. In ComponentTableBody.js,...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.