Issue #1896πŸ’¬ AnsweredOpened March 16, 2019by kaoz702 reactions

Component from custom plugin is not recognized

Quick answerby artf❀ 1

As you see, its type is div... this is why it never reaches the other type... look why and where that type is declared

Read full answer below ↓

Question

OS: Windows 10 x64 Browser: Chrome 72.0.3626.121 x64 GrapesJS: v0.14.55 Hello, I have some custom components (bootstrap tabs) in a plugin, for some reason some of the components of the plugin are not being detected by GrapesJS when loading it from the container elements, and others via dragging and dropping into the editor.This Component is not being detected: const defaultType = dc.getType('default'); const defaultModel = defaultType.model; const defaultView = defaultType.view; const {tabPanesName, tabPaneSelector} = constants; const classId = config.classTabPanes; const type = tabPanesName;...

Answers (3)

artfβ€’ April 3, 2019

As you see, its type is div... this is why it never reaches the other type... look why and where that type is declared

kaoz70β€’ April 3, 2019

Alright, that was the issue! I thought that the 'div' type was a default one set by GrapesJS. Thanks for all the help!

artfβ€’ March 23, 2019

It might be that elHasClass method?!?

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.