Ability to not allow users to add or delete any component. #5473
Unanswered
Abhishek-Khanduri
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I am using GrapesJs as a template builder in my application. The workflow for creating a template in my application is as follows: the admin creates a template by structuring it, specifying where the title should be, where the image should go, and defining the styling of the template(basically the structure of the template). Afterward, the template is saved in the database. These templates created by the admin can then be used by privileged users to create campaigns.
Expected Behaviour
I want that once the admin has created any template, and if any privileged users try to create a campaign using it, they should only be able to edit the placeholder or the contents of the components that the admin has created or change the styling of the component. The privileged user should not be able to add new components or delete any components set by the admin. How can I achieve this?
If this is my GrapesJs template builder component code:
Beta Was this translation helpful? Give feedback.
All reactions