Issue #1776πŸ’¬ AnsweredOpened Feb 6, 2019by shrnfnchr0 reactions

Add read-only trait for all controls

Quick answerby artf

Create your own trait https://grapesjs.com/docs/modules/Traits.html

Read full answer below ↓

Question

We are using grapejs to create webpages. We are doing some back end manipulation of the json to link each child of the html (usually a row) to a record in our database. To that end, I've added a trait to every component called custompk. Upon saving the grapejs, I loop through the first level of components and add a record. Then I update the custompk with the primary key of the record in the database. The json has the appropriate trait and the html shows the custompk that I need. The last thing I'd like to do is to make the custompk trait read only while looking at the page through grapejs. Si...

Answers (2)

lock[bot]β€’ Feb 9, 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.