Merge pull request #2304 from TriliumNext/sirius_patch2

fix(ckeditor): restore focus after importing markdown
This commit is contained in:
Elian Doran 2025-06-13 15:28:04 +03:00 committed by GitHub
commit 2f3275474f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,7 @@ export default class MarkdownImportDialog extends BasicWidget {
const modelFragment = textEditor.data.toModel(viewFragment); const modelFragment = textEditor.data.toModel(viewFragment);
textEditor.model.insertContent(modelFragment, textEditor.model.document.selection); textEditor.model.insertContent(modelFragment, textEditor.model.document.selection);
textEditor.editing.view.focus();
toastService.showMessage(t("markdown_import.import_success")); toastService.showMessage(t("markdown_import.import_success"));
} }