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
GJS.Market Is Now Available for India ๐ฎ๐ณ
GJS.Market is expanding its global presence with a dedicated experience for developers, agencies, SaaS companies, and digital creators in India
Tutorial
How to Build an AI-Powered Page Builder with GrapesJS in 2026
What we learned building GJSDocs โ from simple AI text generation to structured, context-aware visual editing
Tutorial
How Much Does It Cost to Build a SaaS Page Builder in 2026?
How much does it cost to build a SaaS page builder in 2026? Explore realistic development costs, timelines, features, and how using GrapesJS can reduce
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.