Skip to content

Build your personal knowledge base with Trilium Notes

Add server logging for CKEditor state changes

Justin Chines7768511fe687
diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.js
index 607df23494..16016da5b1 100644
--- a/src/public/app/widgets/type_widgets/editable_text.js
+++ b/src/public/app/widgets/type_widgets/editable_text.js
@@ -170,7 +170,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
return;
}
- console.log(`CKEditor changed to ${currentState}`);
+ logInfo(`CKEditor changed to ${currentState}`)
this.watchdog.crashes.forEach((crashInfo) => console.log(crashInfo));
@@ -182,6 +182,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
});
this.watchdog.setCreator(async (elementOrData, editorConfig) => {
+ logInfo("Creating new CKEditor")
const extraOpts = {};
if (isClassicEditor) {
extraOpts.toolbar = {