Make the CSS more specific to apply only inside CKEditor

Created on 21 October 2024, 6 months ago

Problem/Motivation

I guess the grey thick borders were supposed to be shown only while editing the text with CKEditor, but by default (with Drupal 10.3.6 and both Olivero & Claro themes) they are styled anywhere there is a section html element, for example on the node being viewed (even without having manually inserted them) if there is also a form with CKEditor on the same page (by default any node with comments enabled).

Proposed resolution

Change the section section:before declarations in CSS to .ck-editor__editable section and .ck-editor__editable section:before.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024