Issue #1804💬 AnsweredOpened February 18, 2019by AkibDeraiya1230 reactions

Applying two different traits on same html tag but applies only one

Quick answerby artf

The HTML code is already loaded in canvas? Did you try to execute your custom component definition via a plugin? Otherwise you're trying to see changes on already loaded components

Read full answer below ↓

Question

Hello @artf , If we need to initialize two traits on same HTML tag then it's possible or not? Actually i define two different traits on same tag(on link/a tag). Let me describe you in little bit brief. Suppose i have one group of links which contains class is like not-drag-drop. So, it's HTML code is like So for above class not-drag-drop i want to add one traits like, and for all the links i want to one more traits like, But when i click on link which contains class not-drag-drop then only traits apply not-drag-drop, not applies link trait, So, when i am going to change this link's href i am...

Answers (3)

artfFebruary 21, 2019

The HTML code is already loaded in canvas? Did you try to execute your custom component definition via a plugin? Otherwise you're trying to see changes on already loaded components

no-response[bot]March 3, 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]March 10, 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.