X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e711290d8b1ce06b38e0560248806e8de2077870..refs/pull/4467/head:/resources/js/wysiwyg/plugins-customhr.js diff --git a/resources/js/wysiwyg/plugins-customhr.js b/resources/js/wysiwyg/plugins-customhr.js index 6aa1620da..f5da947f2 100644 --- a/resources/js/wysiwyg/plugins-customhr.js +++ b/resources/js/wysiwyg/plugins-customhr.js @@ -1,8 +1,7 @@ /** * @param {Editor} editor - * @param {String} url */ -function register(editor, url) { +function register(editor) { editor.addCommand('InsertHorizontalRule', () => { const hrElem = document.createElement('hr'); const cNode = editor.selection.getNode(); @@ -20,9 +19,8 @@ function register(editor, url) { } /** - * @param {WysiwygConfigOptions} options * @return {register} */ -export function getPlugin(options) { +export function getPlugin() { return register; }