• Resolved vinceaggrippino

    (@vinceaggrippino)


    I created an Enlighter Sourcecode block and set an additional class using the “Additional Class(es)” field under the Advanced section of the post properties.
    I expected the class to be added to the class list of the outermost element in the generated output. That appears to be a DIV with an enlighter-default class.
    There were a few other classes as well, but it didn’t have the class I specified. I found that my class was used on the next block, which is a PRE with the class EnlighterJSRAW and display: none!important set in the CSS.

    This seems like a minor bug. Adding the class to an invisible element doesn’t do anyone any good. It’s not made visible when double-clicking the code or clicking the RAW button. That raw code view comes from another element contained by the first with the class enlighter-raw.

    I came up with a workaround for my needs. I just stuck an empty HTML block into the post right before the code block and used its class along with an adjacent sibling selector to style the Enlighter block.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Specified additional classes only used on the raw block’ is closed to new replies.