Component from custom plugin is not recognized
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)
As you see, its type is div... this is why it never reaches the other type... look why and where that type is declared
Alright, that was the issue! I thought that the 'div' type was a default one set by GrapesJS. Thanks for all the help!
It might be that elHasClass method?!?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1985
[BUG] Autosave with remote storage doesn't send network requests
OS: Windows 10 Browser: Chrome 73 GrapesJS version: 0.14.57 I have remote storage configured using this call to grapesjs.init(): While I se...
Issue #1756
Drag and Drop not working in resized editor window in Google Chrome
Hi, I developed some components and all works fine in Firefox, Opera browser. In Google chrome also working fine in fullscreen editor mode...
Issue #1658
[BUG] Checkbox trait does not load as checked even when the trait value is true
Hi, I'm using Grapesjs version 0.14.33. I'm loading some components when the form loads and I have a component with a checkbox trait. When...
Issue #871
[BUG] Wrong stylemanager options first time a component/block is selected
Hello, I have noticed the following buggy behaviour on the style manager:Using a local copy of GrapesJS (ver 0.14.5) . Tested in Chrome and...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.