Issue #528💬 AnsweredOpened November 15, 2017by krunal0390 reactions

Model and Component sample code and issue

Quick answerby lock[bot]

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.

Read full answer below ↓

Question

@artf Sorry for creating another issue but I tried below code also I have created codepen for same. Codepen and still it only return empty div via editor.getHtml(), I can see html updated in canvas but not on model. Also updateSrc() and updateh2Content() function has var linkModel = this.get("components").at(0); undefined. If you can please do not close issue and try to explain or point to correct sample where I can refer to? //add custom component comps.addType("custom-comp1", { // Define the Model model: defaultModel.extend({ // Extend default properties defaults: Object.assign({}, defaultM...

Answers (1)

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