Issue #1171💬 AnsweredOpened June 6, 2018by ionic6660 reactions

How to change the content

Quick answerby artf

again @ionic666, components are children, so you're NOT replacing the component, you're just adding children. If you need for example to update attributes of the wrapper you do this selected.setAttributes({ property: 'value' })

Read full answer below ↓

Question

hi ,Thank you for your advice on the previous question.but when i change the content ,there will be a extra table.can you tell me which method can just change the content? qq20180606-092912 qq20180606-092957

Answers (3)

artfJune 8, 2018

again @ionic666, components are children, so you're NOT replacing the component, you're just adding children. If you need for example to update attributes of the wrapper you do this selected.setAttributes({ property: 'value' })

ionic666June 8, 2018

@artf sorry ,i just want to know which method can change the content in table.because i want to change the 'tr' and 'td' in 'table'

lock[bot]September 17, 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.