Issue #3714Opened August 18, 2021by ltenti0 reactions

Partial parse

Question

Discussed in https://github.com/artf/grapesjs/discussions/3711

<div type='discussions-op-text'>

<sup>Originally posted by ltenti August 17, 2021</sup> Hi everyone,

I'm wondering how to address this kind of scenario:

  • I have to allow the users of my application to edit a webpage
  • the webpage has some fixed part that the user can't edit
  • the whole HTML is produced server-side by a legacy subsystem, but some part inside it has to be freely editable by the user I realized a custom component that fetches the legacy HTML from the server and "inject" it in the canvas with a model.components(data) statement. I was thinking about creating a new component type (something like doNotEditMe) with property "editable" set to false and then assigning data-gjs-type="doNotEditMe" to all the elements of the original HTML that has to be not-editable. Do you think I'm crazy?
</div>

Answers (1)

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.