Issue #1661πŸ’¬ AnsweredOpened December 14, 2018by Konger19680 reactions

I've created html table and cannot drag new elements to table cells

Quick answerby artf

Hi Konstantin, by doing this this.el.innerHTML = template; you're basically removing components by replacing them with a static HTML. Each component, once inserted inside the canvas has a Model (let's say, the component's JSON structure) bind to its View (render elements), so this View.el.innerHTML = '<div>...</div>'...

Read full answer below ↓

Question

Hello. if I create html table with next block of code, everything works, I'm able to drop a Quote, for example, to any cell: But next code produces html table with no possibility to drop new element into a cell. What am I doing wrong?

Answers (3)

artfβ€’ December 20, 2018

Hi Konstantin, by doing this this.el.innerHTML = template; you're basically removing components by replacing them with a static HTML. Each component, once inserted inside the canvas has a Model (let's say, the component's JSON structure) bind to its View (render elements), so this View.el.innerHTML...

Konger1968β€’ December 20, 2018

Thanks.

lock[bot]β€’ December 20, 2019

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

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 β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.