-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to disable editing on fetched content #336
Labels
Comments
All components are editable by default, you can change their properties with <header data-gjs-editable="false" data-gjs-removable="false" ...>...</header> To get more about components check here |
Probably the easiest way is to update all components const updateComp = (component) => {
if (/* is not editable */) {
component.set({
removable: false,
...
})
}
component.get('components').each(c => updateComp(c))
}
editor.domComponents.getComponents().each(c => updateComp(c)) |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
i want to integrate your project into an existing webpage as a kind of CMS-editor. It is necessary for the editor to wrap the whole body of the page, but i want only parts of the fetched content to be editable. The website header, sidebar and footer should be unchangeable.
Is there an option to differentiate between the editors container and the editable elements?
example markup:
The text was updated successfully, but these errors were encountered: