Issue #511πŸ’¬ AnsweredOpened November 13, 2017by bungambohlah2 reactions

Cannot edit the content after update it via block manager API

Quick answerby artf❀ 1

@edwardjiawei just change content (used only for text content) with components @bungambohlah You should not do this el.insertAdjacentHTML( 'beforeend', contentDynamic ); If you replace the DOM you remove also its attached models If you need to replace the DOM and still be able to select this new content you have to do...

Read full answer below ↓

Question

Hello @artf sorry for my last issue, I must create a new issue, my problem is got error like this EDIT : sorry i just fixed my last issue with script : Updated Script but the content (link element only) cant edit or add some component with grapesjs, how to fix that? thank you @artf :+1:

Answers (3)

artfβ€’ November 15, 2017

@edwardjiawei just change content (used only for text content) with components @bungambohlah You should not do this el.insertAdjacentHTML( 'beforeend', contentDynamic ); If you replace the DOM you remove also its attached models If you need to replace the DOM and still be able to select this new co...

bungambohlahβ€’ November 16, 2017

Thaks a lot @artf i got some idea and little tricky for what to do in the model level, thank you so much, you saved my day :rofl:

edwardjiaweiβ€’ November 15, 2017

Similar issue, nested element is not being detected To setup simple flow to drag and drop table, so user can drag the row Block to make the table for second row, but the td in the row is not editable, not selectable for styling ``` bm.add('Table', { label: 'Table', category: 'Forms', attributes: {c...

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.