Issue #1113Opened May 14, 2018by trinhbalinh1 reactions

[QUESTIONS] New trait type is not working with rendered components?

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 what I've tried so far: https://jsfiddle.net/mv33tfbj/

Answers (3)

trinhbalinhMay 18, 20180 reactions

Thank you, it worked!

lock[bot]September 17, 20190 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.