I would like to have an option in the TinyMCE styles dropdown to change the current class of the current paragraph to "intro".
I want this to only apply to a "p". So either it should change the current block element to a "p" and add the class, or the option shouldn't be there if a "p" isn't already selected - either would do the trick! But I don't want it being added to headings, fro example.
I've created a stylesheet property but it looks like the Alias will either take a "p" or ".intro" but not, say "p.intro". Is there anything I can do about this? Or some magic syntax I am missing?
(In general it would be quite helpful if this styles box was context sensitive.)
TinyMCE Styles dropdown context sensitivity
I would like to have an option in the TinyMCE styles dropdown to change the current class of the current paragraph to "intro".
I want this to only apply to a "p". So either it should change the current block element to a "p" and add the class, or the option shouldn't be there if a "p" isn't already selected - either would do the trick! But I don't want it being added to headings, fro example.
I've created a stylesheet property but it looks like the Alias will either take a "p" or ".intro" but not, say "p.intro". Is there anything I can do about this? Or some magic syntax I am missing?
(In general it would be quite helpful if this styles box was context sensitive.)
Thanks!
John
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.