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?
Answers (1)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6092
@artf , I have a question that , can we implement custom js in studio? means is there any embed js code functionality ?
@artf , I have a question that , can we implement custom js in studio? means is there any embed js code functionality ? Originally posted b...
Issue #3413
QUESTION: Adding inline scripts and updating old events
In that case, I suggest you access the document of the iframe and to append manually the inline script (to get the document use editor.Canv...
Issue #2616
how to use editor.getSelected().append(`<div>...`);
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #590
How to overwrite domain_abstract ui Input component?
https://github.com/artf/grapesjs/blob/25fdbe14098c7e1a65d3e5527749302174f56a7d/src/domainabstract/ui/Input.js I want to change the input cl...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.