- π©πͺGermany geek-merlin Freiburg, Germany
Another - simpler - option to implement this:
- Add a magic token like CURRENT_ENTITY that gets replaced in the css.
It would be soooooooooooo cool if this module had a setting that could enable scoping the input CSS to the entity.
As we know, CSS is global, so if an editor writes something like h2 { color: red !important }
, the entire site is broken.
If there was a "limit CSS to this entity" checkbox that would enable a setting that would prepend an entity-specific selector on each ruleset, so that instead of a h2 { color: red !important }
, it'd output .block-block-content92d23d45-9a44-4e8d-ae7b-0627fc89e7e2 h2 { color: red !important }
, that would increase the utility of this module so much.
Maybe something like https://github.com/sabberworm/PHP-CSS-Parser could help with this?
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Another - simpler - option to implement this:
- Add a magic token like CURRENT_ENTITY that gets replaced in the css.