Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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;}
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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;}
is working on a reply...