It works, but if i put my classes in editor.css instead of typography.css.
I added this in HtmlEditorField.php
new HtmlEditorField_dropdown("mceSetCSSClass", "styleSelect", array(
"mceContentBody" => "mceContentBody",
"red-text" => "red-text",
In editor.css i put
In the CMS editor i see the dropdown with red-text. It appears two times, i donÃ‚Â´t know why. One of then works perfectly and the other does nothing.
The correct one creates
It is perfect for me.
But i need also to create <div id="red-text">mytext</div> and i donÃ‚Â´t know ho to do it. I try to create in editor.css
But it doesnÃ‚Â´t work. Is there a way to do it?
By the way, i read HtmlEditorField_dropdown api info but i think i donÃ‚Â´t understand correcty how it works and how to use it. Can somebody explain it?
Thank you in advance.