Created on 20 August 2024, 3 months ago
Updated 5 September 2024, 3 months ago

Problem/Motivation

The old ckeditor5 font module ( https://www.drupal.org/project/ckeditor5_font β†’ ) tracked font sizes in rems or other valid sizes, moving to this module as a replacement (since the other is not usable with Drupal core 10.3), I find that this only allows sizes in PX or default. According to the ckeditor website (https://ckeditor.com/docs/ckeditor5/latest/features/font.html), "the font plugin supports either CSS class or a font-size style attribute." The CSS standards (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size) allow many values of font size: (xx-small, x-small, small, medium, large, x-large, xx-large, xxx-large, smaller, larger, length values (e.g. px, rem, em), and percent values (%))

Ideally this would support the same options as the underlying plugin.

In addition accessibility best practices are to use relative units (em, rem) instead of absolute (px) for font sizes. Absolute units should be used for things such as border sizes that should not resize.

✨ Feature request
Status

Closed: works as designed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kwfinken Lansing, MI

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

Comments & Activities

Production build 0.71.5 2024