Issue #978💬 AnsweredOpened March 23, 2018by anand-gopinath0 reactions

Custom component type's children are not editable, selectable or highlightable

Quick answerby artf

You can't use data-gjs- attributes if you attach them directly to the DOM, those attributes are parsed from the model level, so model.components('<div data-gjs-...')

Read full answer below ↓

Question

@artf I'm creating a custom component of Default type and the code looks like Even I refereed #260 and implemented as you suggested. Here, the custom div tag holds the functionalities of selectable, removable and highlightable etc. I need the child elements as well to be selectable and highlightable. How to do that? And one more, If do the same thing via BlockManager, it works for all parent and its children

Answers (2)

artfMarch 24, 2018

You can't use data-gjs-* attributes if you attach them directly to the DOM, those attributes are parsed from the model level, so model.components('<div data-gjs-*...')

lock[bot]September 17, 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.