Review 12.4 Abandoned

90840[BUGFIX] Update CKEditor model in source edit view on input

Benjamin Franzke CR 0 V 0 Easy +24 −5 updated 04/17/26, 19:59

Commit message

This patch fixes a bug where changes made in "Source" editing mode
would not be checked during FormEngine validation, mistakenly allowing
to save records when an RTE field is marked as 'required'.

Our CKEditor integration allows to edit the editor document's source
code by default by toggling the "Source" button in the UI. Originally,
the editor model is updated once either the document is saved or the
user disables source editing again.

This has the disadvantage that FormEngine cannot intercept any changes
in an early state, e.g. marking a field as "changed". If source editing
gets enabled, an event listener for the `input` event is now registered
on the textarea that is rendered by source editing, which we have to
pick by ourselves as it is considered private API. The custom event
handler updates the editor model on every input. Since this might cause
performance bottlenecks, the update is debounced every few milliseconds.

Since we deal with private API which might break in future CKEditor
updates, an error is explicitly thrown if the textarea cannot be found.

Review

  • Code review CR 0
  • Verified V 0
    • core-ci +1 CI

Issues 1

Files 2

Review log 57

  1. Benjamin Franzke commented on patch set 1 09/30/25, 07:51

    Cherry Picked from branch 13.4. The following files contain Git conflicts: * Build/Sources/TypeScript/rte_ckeditor/ckeditor5.ts
  2. core-ci voted on patch set 1 V -1 09/30/25, 08:00 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/85731

  3. Benjamin Franzke uploaded patch set 2 V -1 09/30/25, 08:46

  4. Benjamin Franzke wrote 09/30/25, 08:46

    Topic FormEngine-13.4-12.4 removed
  5. core-ci voted on patch set 2 V +1 09/30/25, 08:54 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/85737

  6. Christian Kuhn commented on patch set 2 12/08/25, 23:17

    is this backport still relevant / wanted? it is listed as missing merge on https://forger.typo3.com/utilities/backport
  7. Georg Ringer abandoned the change 04/17/26, 19:59

    12.4 is EOL now, abandoning it