Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Add more logging of CKEditor crashes
Justin Chinesb173429dc500
diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.jsindex 16016da5b1..b22b8cdb21 100644--- a/src/public/app/widgets/type_widgets/editable_text.js+++ b/src/public/app/widgets/type_widgets/editable_text.js@@ -165,13 +165,13 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {this.watchdog.on("stateChange", () => {const currentState = this.watchdog.state;+ logInfo(`CKEditor state changed to ${currentState}`);if (!["crashed", "crashedPermanently"].includes(currentState)) {return;}- logInfo(`CKEditor changed to ${currentState}`)-+ logInfo(`CKEditor crash logs: ${JSON.stringify(this.watchdog.crashes)}`);this.watchdog.crashes.forEach((crashInfo) => console.log(crashInfo));if (currentState === "crashedPermanently") {@@ -182,7 +182,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {});this.watchdog.setCreator(async (elementOrData, editorConfig) => {- logInfo("Creating new CKEditor")+ logInfo("Creating new CKEditor");const extraOpts = {};if (isClassicEditor) {extraOpts.toolbar = {