mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
chore(ckeditor): try to disable watchdog timer
This commit is contained in:
parent
d8b3e438f8
commit
5ad267fe1b
@ -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(() => {
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user