Issue #2188✓ SolvedOpened August 11, 2019by TheComputerM4 reactions

How to change tagName using traits.

Quick answerby TheComputerM2

I solved it after scanning the internet a bit. Add this trait

Read full answer below ↓

Question

Hello, I want to achieve this: When user clicks on a heading tag H1, H2, H3 ... I want a trait to appear (of a select / dropdown type) which can allow the tagName of the heading to be changed

Answers (3)

👍 Most helpfulTheComputerMAugust 11, 2019

I solved it after scanning the internet a bit. Add this trait

BuddhiliveMay 6, 2024

@hosseinghs try this out. This is same as how @TheComputerM implemented the code before. And it works fine.

hosseinghsSeptember 18, 2022

hi, I'm trying to do the same! my problem is when I click one of the options from traits, my heading element won't be updated to new heading! can you help me?

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.