Copied to clipboard

Flag this post as spam?

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


  • Stuart 7 posts 77 karma points
    Oct 22, 2015 @ 11:22
    Stuart
    0

    Error adding custom formats to the RTE

    I'm my case i was trying to create a custom format that would output pre and code tags nested

    When set to say, just code or pre (simply by specifying code or pre in the Alias field, then things work as expected.

    But if I enter "pre code" the whole declaration is not shown in the Formats dropdown, yet still present in the css file....

    So, it must be down to how that css file is parsed before being displayed in RTE...?

    The code in the css file for clarity (this DOES NOT render in the RTE Formats dropdown):

    /**umb_name:Code Block*/ pre code{display:block;background: #3a3a3a; color:rgba(255,255,255,0.85); margin-bottom: 2rem; padding: 1rem; font-family: monospace; font-size: 0.9rem;}

Please Sign in or register to post replies

Write your reply to:

Draft