mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 13:09:01 +01:00
Add server logging for CKEditor state changes
This commit is contained in:
parent
1807b2b031
commit
7768511fe6
@ -170,7 +170,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`CKEditor changed to ${currentState}`);
|
logInfo(`CKEditor changed to ${currentState}`)
|
||||||
|
|
||||||
this.watchdog.crashes.forEach((crashInfo) => console.log(crashInfo));
|
this.watchdog.crashes.forEach((crashInfo) => console.log(crashInfo));
|
||||||
|
|
||||||
@ -182,6 +182,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.watchdog.setCreator(async (elementOrData, editorConfig) => {
|
this.watchdog.setCreator(async (elementOrData, editorConfig) => {
|
||||||
|
logInfo("Creating new CKEditor")
|
||||||
const extraOpts = {};
|
const extraOpts = {};
|
||||||
if (isClassicEditor) {
|
if (isClassicEditor) {
|
||||||
extraOpts.toolbar = {
|
extraOpts.toolbar = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user