Issue #3012💬 AnsweredOpened September 10, 2020by krishnaeverestengineering0 reactions

How to avoid tags to be detected as Component

快速解答by RJCAM

Hi @krishnaeverestengineering why you don't just simply use the rich text editor to make the text bold?

Read full answer below ↓

Question

I want to avoid some of the tags not to detect as components like 'B', 'I' etc tag. The problem is I have a component like this <p data-gjs-type="text">Insert Text Here</p> When I add Bold style to some textnode like this <p data-gjs-type="text">Insert Text <b>Here</b></p> due to its component behaviour B tag also detecting as Text component. When I saved it and come back, now it got divided into two components. So I want to Avoid some tags to be as component. How to fix this?

Answers (3)

RJCAMSeptember 10, 2020

Hi @krishnaeverestengineering why you don't just simply use the rich text editor to make the text bold? image

krishnaeverestengineeringSeptember 10, 2020

Yes we can use it . But the problem is after saving and loading the content again makes that B tag as separate text component. That I want to avoid as another component

krishnaeverestengineeringSeptember 11, 2020
<img width="809" alt="Screenshot 2020-09-11 at 9 10 41 AM" src="https://user-images.githubusercontent.com/55732888/92854461-ba449e00-f40e-11ea-9ca7-4e4a5dc26402.png">

See this, now bold text is now another text component

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.