mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Adds edit icon to each header in the page.
Towards #618 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
@@ -43,6 +43,13 @@ function mounted() {
|
||||
window.$events.listen('editor-markdown-change', markdown => {
|
||||
this.editorMarkdown = markdown;
|
||||
});
|
||||
|
||||
const scrollToText = window.location.hash ? window.location.hash.substr(1) : '';
|
||||
if (scrollToText) {
|
||||
setTimeout(() => {
|
||||
window.$events.emit('editor-scroll-to-text', scrollToText);
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
|
||||
let data = {
|
||||
|
Reference in New Issue
Block a user