feat(note_language): initialize CKEditor with right language

This commit is contained in:
Elian Doran
2025-03-04 19:29:02 +02:00
parent 3546ac6ded
commit 42d3334c9d
2 changed files with 15 additions and 2 deletions

View File

@@ -148,6 +148,9 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
typeWidget.spacedUpdate = this.spacedUpdate;
typeWidget.setParent(this);
if (this.noteContext) {
typeWidget.setNoteContextEvent({ noteContext: this.noteContext });
}
const $renderedWidget = typeWidget.render();
keyboardActionsService.updateDisplayedShortcuts($renderedWidget);