X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e0d938005591c14e1b9ad593b772ea427b8f281d..refs/pull/3247/head:/resources/js/wysiwyg/config.js diff --git a/resources/js/wysiwyg/config.js b/resources/js/wysiwyg/config.js index 0b43b9c79..1a38c1f59 100644 --- a/resources/js/wysiwyg/config.js +++ b/resources/js/wysiwyg/config.js @@ -1,6 +1,6 @@ import {register as registerShortcuts} from "./shortcuts"; import {listen as listenForCommonEvents} from "./common-events"; -import {scrollToQueryString, fixScrollForMobile} from "./scrolling"; +import {scrollToQueryString} from "./scrolling"; import {listenForDragAndPaste} from "./drop-paste-handling"; import {getPlugin as getCodeeditorPlugin} from "./plugin-codeeditor"; @@ -164,7 +164,6 @@ function getSetupCallback(options) { editor.on('init', () => { editorChange(); scrollToQueryString(editor); - fixScrollForMobile(editor); window.editor = editor; }); @@ -238,14 +237,13 @@ export function build(options) { file_picker_types: 'file image', file_picker_callback, paste_preprocess(plugin, args) { - let content = args.content; + const content = args.content; if (content.indexOf('