X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/134a96fa32d6e5efff8a912864c9a2a2862ddb39..f62843c8614e64ef39d15fedbf32688ecbcc1b95:/resources/assets/js/vues/page-editor.js diff --git a/resources/assets/js/vues/page-editor.js b/resources/assets/js/vues/page-editor.js index 3796fbf65..864a3a906 100644 --- a/resources/assets/js/vues/page-editor.js +++ b/resources/assets/js/vues/page-editor.js @@ -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 = { @@ -152,6 +145,6 @@ let computed = { } }; -module.exports = { +export default { mounted, data, methods, computed, }; \ No newline at end of file