How can I personalize my tinymcerte with span and color for a word

Hi,

I am personalizing the tinymcerte. My goal is to be able to highlight a word in a paragraph and to asign a color.

I started to edit the setting tinymcerte

and I added
{"title": "Texte orange", "selector": "*", "classes": "orange"}
but it does not work as all my paragraph is orange.
Then I changed to
{"title": "Texte orange", "selector": "span", "classes": "orange"}
but I needed to modify

and I added the span section as the following
[{"title": "Paragraph", "format": "p"},{"title": "Blockquote", "format": "blockquote"},{"title": "Div", "format": "div"},{"title": "Pre", "format": "pre"},{"title": "Span", "format": "span"}]

but as you can see

I can not use is because is inactive. When I would like a word in my paragraph, I can not include the span around the word

Is there any way to have a personalized color for a part of a text? What did I do wrong?

Cheers

Hey @pierrot10 …

Take a look here

Hope this helps.

Ho yé, That’s work. I saw this stopics but I missed this (“inline”: “span”)

{“title”: “Texte orange”, “inline”: “span”, “classes”: “orange”},

1 Like

Glad you’re sorted! :+1:

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.