Issue #2014💬 AnsweredOpened May 13, 2019by alimajed931 reactions

Not able to get content of a link block

Quick answerby prosenjit-manna1

Duplicate #2013

Read full answer below ↓

Question

Hello all, I am using grapesjs version 0.14.52. I am having the following issue: When I drop a link block inside the canvas, I can use the following linkModel.get("content"), to get the content of the link. But once I set a new content, using linkModel.set("content", "whatever"), linkModel.get("content") starts returning an empty string value. I am able to set and read the attributes per example using the same get and set methods, and any other property, apart from content. After checking the linkModel JSON, the content property has the correct value in the beginning, but for some reason is b...

Answers (3)

prosenjit-mannaMay 14, 2019

Duplicate #2013

lock[bot]May 20, 2020

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.

lock[bot]May 20, 2020

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.