Issue #2285πŸ’¬ AnsweredOpened Sep 22, 2019by megarg2 reactions

Cannot add new trait

Quick answerby pouyamiralayi❀ 1

Hi there! i do not see any reason why your first approach is not working! did you try this one? cheers.

Read full answer below ↓

Question

I am trying to add a new trait but it is not working. I have done quite a bit of research and tried multiple ways but it still does not seem to be working. Can you please guide what I may be doing wrong. Option 1: Option2: Trying to add programatically. I am following doc from: https://grapesjs.com/docs/modules/Traits.html#add-traits-to-components This option 2 is giving compilation error.

Answers (2)

pouyamiralayiβ€’ Sep 23, 2019

Hi there! i do not see any reason why your first approach is not working! did you try this one? cheers.

megargβ€’ Sep 24, 2019

This is working now. The original code is working.

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.