mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08: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;
|
||||
}
|
||||
|
||||
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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user