Replace (wiki) links with proper link widgets for better click behavior

This commit is contained in:
Zef Hemel
2022-11-28 16:56:15 +01:00
parent cab0c5aa23
commit a20aed99e2
7 changed files with 198 additions and 120 deletions
+3
View File
@@ -307,8 +307,11 @@ export class Editor {
// Frotnmatter found, put cursor after it
initialCursorPos = match[0].length;
}
// By default scroll to the top
this.editorView.scrollDOM.scrollTop = 0;
this.editorView.dispatch({
selection: { anchor: initialCursorPos },
// And then scroll down if required
scrollIntoView: true,
});
}