Responsive tables using figure element as per ckeditor library

Created on 1 August 2024, 11 months ago

Problem/Motivation

Drupal CkEditor tables are not responsive out of the box, such as CkEditor 5 which solves responsive tables using `overflow-x: auto` on the figure element

See relevant ckeditor 5 issues that have been merged.

Steps to reproduce

Create a table within ckeditor, save the page and review source markup or use inspect tool the table element is not a child of a figure element.
Ckeditor demo https://ckeditor.com/ckeditor-5/demo/feature-rich/ creates a table wrapped in a figure element.
I confirmed this on my drupal setup and verified the results on http://simplytest.me/

Proposed resolution

Update Drupal version of ckeditor, or/and add the figure element to the table widget.

Feature request
Status

Active

Version

11.0 🔥

Component
CKEditor 5 

Last updated about 20 hours ago

Created by

🇨🇦Canada delmarr

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

Comments & Activities

Production build 0.71.5 2024