Issue #1696πŸ’¬ AnsweredOpened December 31, 2018by muhamdgomaa280 reactions

Traits appear first time when draged custom component

Quick answerby artf

Please create a live demo of this issue

Read full answer below ↓

Question

Hi artf , i have created custom component and add traits for it , when dragging this component to editor and select it the setting traits work correctly . the proplem is when draged the same component behind the old component to editor and select setting traits the default traits will appear ( id , title) only , this is code that i implemented for create component : this.editor.BlockManager.add('customtext',{ id: 'texttool', label: 'Text Tool', content:{ components: [ { tagName: 'texttool', type:'texttool', editable:true, content:'// some html ' }, ] },} for adding traits for this comonent: t...

Answers (3)

artfβ€’ January 4, 2019

Please create a live demo of this issue

no-response[bot]β€’ January 14, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we ne...

lock[bot]β€’ April 15, 2020

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 β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.