Issue #1632✓ SolvedOpened December 5, 2018by cnaa975 reactions

Control table cell (add row, column..)

Quick answerby shubhd473

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)

👍 Most helpfulshubhd47October 7, 2019

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

artfDecember 7, 2018

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...

cnaa97December 10, 2018

Thanks for your kindness answer.

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

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.