• TinyMCE Compounding Styles#

  • mikemac4344 Reply #1, 6 months ago

    Reply
    I'm hoping this is a dumb question:

    I've added a list of styles via the css selector setting for TinyMCE:

    Alignligncenter;Caption=caption;Article=article_text

    If I apply "Align Center" to a paragraph, I get the expected result (p.aligncenter).

    If I apply Caption to a subsequent paragraph, I get "p.aligncenter caption" instead of the expected p.caption.

    If you enter a third paragraph and choose, say, article text, the css selector is now p.aligncenter caption article_text. If you highlight the paragraph and select "Styles" from the styles dropdown, it will remove the outermost selector. (p.aligncenter caption article_text becomes p.aligncenter caption).

    Again, I don't know if I am not correctly setting up the css selector setting, if TinyMCE has a bug, ModX has a bug or I am just dumb. These possibilities are not mutually exclusive of course.

    Thanks