Make inside elements not movable with propagate
You can place another custom component in the middle which propagates those properties and also the draggable or, as the droppable is false on all components you can simply update all inner components on init
Read full answer below βQuestion
Hi, creating a component/block, we want elements inside not to be removed, edited or moved: not removed and not edited ok but how to make them non movable? Thanks! $.get( "/iscrizionePrivacy.plp?a=VGsflaU2d7D0sUcDhl7lCkkX8tE1UW9kBzLcqcUAR8-yKo74nLUmyXKrfIUstkUirvlSCA5sqeHrBsznmUg&locale=itIT&fromBE=true", function( data ) { editor.DomComponents.addType('eb-privacy', { // Make the editor understand when to bind my-input-type // isComponent: el => el.tagName === 'INPUT', // Model definition model: { // Default properties defaults: { //tagName: 'input', //draggable: 'form, form *', // Can be dro...
Answers (3)
You can place another custom component in the middle which propagates those properties and also the draggable or, as the droppable is false on all components you can simply update all inner components on init
Following code prints only "........ doTheThing 3......" Seems init() it's not called: $.get( "/iscrizionePrivacy.plp?a=VGsflaU2d7D0sUcDhl7lCkkX8tE1UW9kBzLcqcUAR8-yKo74nLUmyXKrfIUstkUirvlSCA5sqeHrBsznmUg&locale=itIT&fromBE=true", function( data ) { const doTheThing = items => items.forEach(item =>...
You have to use the component in the canvas
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1748
How to prevent drag items inside the editor
Hello @artf You are doing great job with grapesjs and it's extremely helpful to make our functionality more user friendly. Thanks for creat...
Issue #2129
How to append a button inside default modal and catch it's click event
I want a form inside a modal (using the default modal ), on click of the submit button make an ajax call. I have created a new component wh...
Issue #3008
Center a Div and resizable borders
1) How to center a div inside a div in the Layer Manager? What button i must use? 2) How to make appear the resizable borders for a block?...
Issue #2076
How make a new component to allow laravel blade directives?
Hi, thanks for the nice work. I'll like to know if there is a way to use blade directives inside the code. I already add a new functionalit...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.
Tutorial
Vanilla GrapesJS vs GrapesJS With Plugins: What You Actually Get Out of the Box (2026)
New to GrapesJS? See exactly what the stock editor gives you, where it falls short, and which plugins close the gaps β a beginner-friendly 2026 comparison
Tutorial
Lighthouse for GrapesJS: Audit Accessibility and SEO Without Leaving the Editor
Live WCAG 2.1/2.2 accessibility auditor + SEO manager for GrapesJS. Every finding is bound to the exact component β click to select, then one-click fix.
Tutorial
GrapesJS DevTools: A Developer Panel Inside Your Editor
If you've ever debugged GrapesJS with console.log(editor.getSelected()) and a dozen throwaway event listeners β this post is for you.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.