]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/vues/page-editor.js
Rolled tri-layout to page edit and book-create
[bookstack] / resources / assets / js / vues / page-editor.js
index 3796fbf655dc21548105ab1dd30424d66701519c..864a3a9064912b203658959391b7ca16534c6efb 100644 (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 = {
@@ -152,6 +145,6 @@ let computed = {
     }
 };
 
-module.exports = {
+export default {
     mounted, data, methods, computed,
 };
\ No newline at end of file