Issue #3512๐Ÿ’ฌ AnsweredOpened Jun 2, 2021by Palash-Mandal1 reactions

Child elements not draggable ,droppable highlightable. also the CSS of all child elements not pushed in style section while develop a banner component in as plugin

Quick answerby artfโค 1

In your model component definition, you're using content: config.template but it should be components: config.template

Read full answer below โ†“

Question

Hello @artf , I am trying to develop a simple banner plugin which will be include a heading , subheading and link. and every element can be draggable ,droppable highlightable, but based on below code some portion of code not working. Please Help only banner class CSS pushed but another all not go in the CSS section ------------ index.js---------- import loadComponents from './components'; import loadBlocks from './blocks'; export default (editor, opts = {}) => { const options = {... { // default options bannerBlock: {}, classBanner: "banner", template: <div><h2 class="bannerheading">Banner He...

Answers (3)

artfโ€ข Jul 6, 2021

In your model component definition, you're using content: config.template but it should be components: config.template

Palash-Mandalโ€ข Jun 15, 2021

Hello @artf , I have made the solution but there are some issue arise the component. the child component h2,h3 and link pushed for all other component. If I drop one column component those child element also pushed inside there. How Do I restrict the conflict. Below here is the codepen example wher...

GJSBlockโ€ข May 17, 2026

Thanks for reporting this, @Palash-Mandal. Great question about Child elements not draggable ,droppable highlightable. also the CSS of all child elements not pushed in style section while develop a banner component in as plugin. The recommended approach with ProseMirror is to use the event-driven A...

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.