mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(ckeditor): restore focus after importing markdown
This commit is contained in:
parent
f0c696d6fd
commit
41eff6de17
@ -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"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user