Prevent filter form from being submitted during CKEditor ajax callback after toolbar update

Created on 13 August 2025, 1 day ago

Problem/Motivation

For each change of the toolbar items the ajax callback _update_ckeditor5_html_filter is triggered. Sometimes it takes long enough for user to scroll down to the submit button of the form and click it. Until the ajax response is there no plugin configuration subforms are there, so also no validation happens on subforms. This can lead to errors on subsequent edits of the text format/filter.

Steps to reproduce

Create a text format with CKEditor 5.
Drag "Styles" button to "Active toolbar" and quickly scroll down and submit the form.
The text format/filter will be saved.
Open text format/filter to edit.
Try to save it again - there will be validation error that the styling element should be configured with at least 1 style.

Proposed resolution

Block the submit button on toolbar update and unblock it with ajax command.

Remaining tasks

Provide MR.

User interface changes

None.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

Prevent text format form from being submitted while CKEditor plugins are being added to toolbar.

Feature request
Status

Active

Version

11.2 🔥

Component

ckeditor5.module

Created by

🇩🇪Germany a.dmitriiev

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