Hey, is it possible for me to add classes to different p tags. Lets say for example i want to style 5 different paragraphs differently, one with a blue border one with a green border etc etc. How could i go about doing this?
This topic has been created from a Discord post (1270434973991571618) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
You would need to extend the existing Slate editor to use text tyles.
But it is ununsual to have a feature like that.
I basically have some components that link off to certain product types, If I have a long article, and on the 4th paragraph i mention a discount of the product or the product itsself I want to have a div here or a component that I can promote the product through, but can’t seem to find a way to do as the rich text editor is only text really.
You could handle it on the frontend itself, I think it would be the easies way
otherwise you will need implement the extension by your self, see here, or here