chore(ckeditor): try to disable watchdog timer

This commit is contained in:
Elian Doran 2025-12-07 20:09:56 +02:00
parent d8b3e438f8
commit 5ad267fe1b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ export default function CKEditorWithWatchdog({ containerRef: externalContainerRe
watchdog.create(container);
return () => watchdog.destroy();
}, [ contentLanguage, templates, uiLanguage ]);
}, [ containerRef, externalWatchdogRef, onEditorInitialized, onWatchdogStateChange, contentLanguage, templates, uiLanguage, watchdogConfig, isClassicEditor ]);
// React to notification warning callback.
useEffect(() => {

View File

@ -232,7 +232,7 @@ export default function EditableText({ note, parentComponent, ntxId, noteContext
// A threshold specifying the number of errors (defaults to 3). After this limit is reached and the time between last errors is shorter than minimumNonErrorTimePeriod, the watchdog changes its state to crashedPermanently, and it stops restarting the editor. This prevents an infinite restart loop.
crashNumberLimit: 10,
// A minimum number of milliseconds between saving the editor data internally (defaults to 5000). Note that for large documents, this might impact the editor performance.
saveInterval: 5000
saveInterval: Number.MAX_SAFE_INTEGER
}}
templates={templates}
onNotificationWarning={onNotificationWarning}