Rich Text Editor strips Font Awesome icon i tags and adding ValidElements is erased on build.
The rich text editor strips out the i tags used for font awesome icons. I have tried adding/replacing the em/i tag in ValidElements within the appsettings-schema.json, but that line ValidElements line just reverts back to default when I rebuild the solution?
That allowed me to put the "i" tag in the RTE, but it added a red highlight period "." in the middle. Which appears to translate to a non-breaking space " " on the front-end. Which is not what I want. Even though I have the hash "#" in the front of "i"
Rich Text Editor strips Font Awesome icon i tags and adding ValidElements is erased on build.
The rich text editor strips out the i tags used for font awesome icons. I have tried adding/replacing the em/i tag in ValidElements within the appsettings-schema.json, but that line ValidElements line just reverts back to default when I rebuild the solution?
You need to override it in your appsettings.json simply copy it into your settings file and make the change there. The schema file is not for editing
You need to add to your appsettings.json like below
That allowed me to put the "i" tag in the RTE, but it added a red highlight period "." in the middle. Which appears to translate to a non-breaking space " " on the front-end. Which is not what I want. Even though I have the hash "#" in the front of "i"
not certain what you mean, what # in front of the i?
what exactly have you added to the rte code window?
I've added this to the appSettings
-em[class|style],#i[class|style]
I saw that the "#" allows the i tag to be empty. But it is still adding a red period:
I've never had to add the # and it quite happily accepts empty i tags
<p>text <i class="fa-solid fa-test"></i></p>
How are you adding the i tag? by hand or using a format link or something?
I just did a quick test, the nbsp is added because of the #, I just use
+i[class|style]
is working on a reply...