]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/config.js
Added test to cover export body start/end partial usage
[bookstack] / resources / js / wysiwyg / config.js
index 148a4125b52226aed146aeb570e35bbe3ebe4015..52c52592cb720fab6a235a5d04ea4902cbf89515 100644 (file)
@@ -166,13 +166,13 @@ function getSetupCallback(options) {
     return function(editor) {
         editor.on('ExecCommand change input NodeChange ObjectResized', editorChange);
         listenForCommonEvents(editor);
-        registerShortcuts(editor);
         listenForDragAndPaste(editor, options);
 
         editor.on('init', () => {
             editorChange();
             scrollToQueryString(editor);
             window.editor = editor;
+            registerShortcuts(editor);
         });
 
         editor.on('PreInit', () => {