New trait type is not working with rendered components?
Just include your changes in a plugin https://jsfiddle.net/on1g5xqb/
Read full answer below βQuestion
Hello, thanks for the great framework. I'm trying to apply this to my project. I want to add a new trait for existing LINK '<a>' component. I follow these documents and almost got what I expected: https://github.com/artf/grapesjs/wiki/Traits#define-new-trait-type and: https://github.com/artf/grapesjs/wiki/Components#update-component-type Now I got the new trait added to the LINK component BUT for components drag & dropped from Blocks panel only. The rendered links doesn't have this new trait. Can I have this new trait apply for all components (included rendered). Thank you so much Here is wha...
Answers (3)
Just include your changes in a plugin https://jsfiddle.net/on1g5xqb/
Thank you, it worked!
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.
Issue #1695
Adding new trait to Video component
I want to add a new trait for existing VIDEO '' component. I follow the docs and I didn't find what I want. Now I got the new trait added t...
Issue #1105
add class in existing element
Hello previous issue can you please let me know how can add a new class on map element? I don't want add class manually on element through...
Issue #1991
[QUESTIONS] resizable, using unitWidth in px output into percent.
Hi @artf, Thanks for making this amazing framework. Recently I made a custom component based on your flexbox plugin. The red arrow is the a...
Issue #444
How to load css link into the head tag?
Hello, First of all, thanks for contributing such an amazing js framework. I am very new to grapesjs. And github too. https://github.com/ar...
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.