Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John 79 posts 115 karma points
    Nov 03, 2011 @ 15:57
    John
    1

    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

  • 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.

Please Sign in or register to post replies