CKEditor 5 should respect <textarea disabled>

Created on 24 May 2023, about 1 year ago
Updated 3 October 2023, 9 months ago

Problem/Motivation

In the issue queue of the Disable field module, issue ๐Ÿ› Not working on CKEditor5 Text(formatted, long) Fixed was reported, that it's no longer possible to disable ckeditor fields, since CKEditor5.

With CKEditor4 it was possible to disable the text editor by adding an disabled attribute to the underlying textarea. In CKEditor5, this needs some more changes:
https://ckeditor.com/docs/ckeditor5/latest/features/read-only.html
editor.enableReadOnlyMode()

Steps to reproduce

  • Visit a page with an CKEditor5 text editor.
  • Make the form element disabled. e.g. $form['editor']['#disabled'] = TRUE;

Proposed resolution

When the underlying textarea is disabled, enable read only mode.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Fixed

Version

10.1 โœจ

Component
CKEditor 5ย  โ†’

Last updated about 17 hours ago

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium JeroenT ๐Ÿ‡ง๐Ÿ‡ช

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

Comments & Activities

Production build 0.69.0 2024