N°8340 - CKEditor is slow with large texts

This commit is contained in:
bdalsass
2025-07-10 10:20:23 +02:00
parent 6826ab509d
commit 497fc4978a
4 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,6 @@
import { Plugin } from '@ckeditor/ckeditor5-core';
export default class UpdateInputOnChange extends Plugin {
static get pluginName(): string;
private debounceTimeout;
init(): void;
}

View File

@@ -255,6 +255,7 @@ JS
.then((oCKEditor) => {
oCKEditor.model.document.on("change:data", () => {
const oFieldElem = $("#{$this->oField->GetGlobalId()}");
oFieldElem.val(oCKEditor.getData());
oFieldElem.closest(".field_set").trigger("field_change", {
id: oFieldElem.attr("id"),
name: oFieldElem.closest(".form_field").attr("data-field-id"),