Display code mirror when selected

Hello! I try to some custom CSS, and I use the WYSIWYG css (from here) with some edit. I have a problem when I select things that use the display: none feature. In fact, active line doesn’t work, and it bugs a lot when select (Can select little things with Markdown code who disappear).

Things I have tried

div:.CodeMirror-selected > .CodeMirror-line span.cm-formatting
div:not(.CodeMirror-activeline, .CodeMirror-selected)>.CodeMirror-line span.cm-formatting
::selection
div:not(.CodeMirror-selected)>.CodeMirror-line span.cm-formatting

Anyone has an idea ? :open_mouth:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.