X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9135a85de4eef32a91c7a3ee0aa405ed454e5a4c..refs/pull/4815/head:/resources/js/markdown/common-events.js diff --git a/resources/js/markdown/common-events.js b/resources/js/markdown/common-events.js index 3afd03dd5..c3d803f70 100644 --- a/resources/js/markdown/common-events.js +++ b/resources/js/markdown/common-events.js @@ -6,23 +6,22 @@ function getContentToInsert({html, markdown}) { * @param {MarkdownEditor} editor */ export function listen(editor) { - - window.$events.listen('editor::replace', (eventContent) => { + window.$events.listen('editor::replace', eventContent => { const markdown = getContentToInsert(eventContent); editor.actions.replaceContent(markdown); }); - window.$events.listen('editor::append', (eventContent) => { + window.$events.listen('editor::append', eventContent => { const markdown = getContentToInsert(eventContent); editor.actions.appendContent(markdown); }); - window.$events.listen('editor::prepend', (eventContent) => { + window.$events.listen('editor::prepend', eventContent => { const markdown = getContentToInsert(eventContent); editor.actions.prependContent(markdown); }); - window.$events.listen('editor::insert', (eventContent) => { + window.$events.listen('editor::insert', eventContent => { const markdown = getContentToInsert(eventContent); editor.actions.insertContent(markdown); }); @@ -30,4 +29,4 @@ export function listen(editor) { window.$events.listen('editor::focus', () => { editor.actions.focus(); }); -} \ No newline at end of file +}