X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/921131f99949960f448b2cfbb0ad78edc8d4f24a..refs/pull/3630/head:/resources/js/wysiwyg/plugins-customhr.js diff --git a/resources/js/wysiwyg/plugins-customhr.js b/resources/js/wysiwyg/plugins-customhr.js index 0744f113f..d484284ca 100644 --- a/resources/js/wysiwyg/plugins-customhr.js +++ b/resources/js/wysiwyg/plugins-customhr.js @@ -12,16 +12,7 @@ function register(editor, url) { editor.ui.registry.addButton('hr', { icon: 'horizontal-rule', - tooltip: 'Horizontal line', - onAction() { - editor.execCommand('InsertHorizontalRule'); - } - }); - - editor.ui.registry.addMenuItem('hr', { - icon: 'horizontal-rule', - text: 'Horizontal line', - context: 'insert', + tooltip: 'Insert horizontal line', onAction() { editor.execCommand('InsertHorizontalRule'); }