- Issue created by @jeanbryanx
At a glance this seems to be how CKEditor does things, not Drupal. That is: if you pick "Solid" for the border style and "1px" for "Width, CKEditor does not create an attribute mentioning width. CKEditor will do so if you select some other options, like 2px and other styles. But it does so differently. Sometimes CKEditor adds a style for "border", and in other cases it uses the "border-width" style.
It would be good to know:
- What difficulties or problems does this behavior cause?
- Is the behavior the same on the CKEditor demos? If that's the case this isn't to do with Drupal itself.
I am updating some issue metadata according to the project guidelines.
On a fresh install of 10.4.7 I see the same behaviour.
Some of the borders are still displayed, but it depends on the theme — with Claro a red outer border plus thin grey border between rows, and with Olivero just a red border in between rows. I gather that's due to an update to styles in #3021388 → , and doesn't seem possible to override while using CKEditor5.- Status changed to Postponed: needs info
about 1 month ago 8:11pm 15 August 2025 - 🇵🇰Pakistan akhtardaha
The issue arises from CKEditor's default 1px border-width. To allow users to apply default browser or theme typography borders, To address the issue with CKEditor's default border-width, consider these alternatives:
1. Add theme CSS: Include
table { border-width: 1px; }
in your theme's style file. This sets a default border width, unaffected by user-applied borders.
2. Use relative units: Replace 1px with 0.063rem (equivalent to 1px). This allows for more flexibility.