Issue #648πŸ’¬ AnsweredOpened Dec 15, 2017by effectief0 reactions

Panel may be moveable but prevent move, remove properties on the childs

Quick answerby artf

Hi @effectief, create a wrapper for children with that propagate property

Read full answer below ↓

Question

Hi, How can I prevent move, remove properties on the childs? In this case (see code below) the user may move the parent (Template2), but all the childs may not move. I tried it with 'propagate', but these properties are applicable to the parent too. I need an option too aply properties specifically on childs. blockManager.add('Template2', { label: 'Template 2', content: 'lorem ipsem', }); const domc = editor.DomComponents; const defaultType = domc.getType('default'); const defaultModel = defaultType.model; const defaultView = defaultType.view; domc.addType('Template2', { model: defaultModel.e...

Answers (2)

artfβ€’ Dec 19, 2017

Hi @effectief, create a wrapper for children with that propagate property

parent // movable, removable, etc
    wrapper // with `propogate`, not movable, etc.
        child
        child
        ...
lock[bot]β€’ Sep 18, 2019

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.

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.