How to avoid tags to be detected as Component
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)
Hi @krishnaeverestengineering why you don't just simply use the rich text editor to make the text bold?

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
See this, now bold text is now another text component
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3422
How we can remove default text content from text component 'Insert your text here' ?
I want to remove default text from text component just like placeholder. every time when we drag text component we need to remove default t...
Issue #3231
BUG: how to change gjs-ckeditor-format component
hi guys, we all know that gjs-ckeditor-plugin working with [data-gjs-type]="text" components. I wanna know , could we change this option? I...
Issue #2170
[QUESTION] Custom component - how to set editable to true
Hi, I've created a custom component type, but I am having some trouble making it editable. The component is a "span" with component type "t...
Issue #2404
Question: how to observe children changes in component
Is there an easy way to subscribe/listen to changes in the components/children of my custom component type? Perhaps an event I can subscrib...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.