Issue #3025πŸ’¬ AnsweredOpened Sep 15, 2020by trony20200 reactions

Make inside elements not movable with propagate

Quick answerby artf

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)

artfβ€’ Sep 16, 2020

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

trony2020β€’ Sep 16, 2020

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 =>...

artfβ€’ Sep 23, 2020

You have to use the component in the canvas

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

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.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.