mirror of
https://github.com/zadam/trilium.git
synced 2026-01-05 23:19:56 +01:00
Add server logging for CKEditor state changes
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user