Issue #1529πŸ’¬ AnsweredOpened Oct 19, 2018by krunal0391 reactions

Componet is not editable

Quick answerby artf❀ 1

traits are not visible when clicked on component. Because you're clicking another component (the inner one, which has its own traits), if you don't need that component to be selectable you can use selectable property <div data-gjs-selectable="false">...

Read full answer below ↓

Question

I have custom component and have applied editable=true but child element are not editable, I even tried adding data-gjs-editable=true and also try to use basic component blocks but entire component is not editable. var sliderType = 'hsbc-slider-1'; var createSliderComponent = function (comps, defaultModel, defaultView) { var defaultType = comps.getType("default"); var defaultModel = defaultType.model; var defaultView = defaultType.view; comps.addType(sliderType, { // Define the Model model: defaultModel.extend({ // Extend default properties defaults: Object.assign({}, defaultModel.prototype.d...

Answers (3)

artfβ€’ Oct 26, 2018

traits are not visible when clicked on component.

Because you're clicking another component (the inner one, which has its own traits), if you don't need that component to be selectable you can use selectable property <div data-gjs-selectable="false">...

artfβ€’ Oct 19, 2018

You should put the HTML not inside content(in the block definition) but components

krunal039β€’ Oct 22, 2018

@artf I have put inside components and if I do that way than traits are not visible when clicked on component. var sliderType = 'hsbc-slider-1'; var createSliderComponent = function (comps, defaultModel, defaultView) { var defaultType = comps.getType("default"); var defaultModel = defaultType.model...

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.