Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 2f32754

Browse files
authored
Merge pull request #2304 from TriliumNext/sirius_patch2
fix(ckeditor): restore focus after importing markdown
2 parents 5b6c003 + 41eff6d commit 2f32754

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/client/src/widgets/dialogs/markdown_import.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default class MarkdownImportDialog extends BasicWidget {
6969
const modelFragment = textEditor.data.toModel(viewFragment);
7070

7171
textEditor.model.insertContent(modelFragment, textEditor.model.document.selection);
72+
textEditor.editing.view.focus();
7273

7374
toastService.showMessage(t("markdown_import.import_success"));
7475
}

0 commit comments

Comments
 (0)