]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugins-customhr.js
Added test to cover export body start/end partial usage
[bookstack] / resources / js / wysiwyg / plugins-customhr.js
index 0744f113f43461c7f519d19ab67f6c5b5f60dee9..d484284cad24afb14b926ad3e7e9aa2e1e4e3a9b 100644 (file)
@@ -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');
         }