1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Added code to handle scroll for markdown.

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
Abijeet
2018-06-10 13:11:10 +05:30
parent 134a96fa32
commit b936e1f403
4 changed files with 60 additions and 19 deletions

View File

@@ -43,13 +43,6 @@ 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 = {