]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugins-customhr.js
Guest create page: name field autofocus
[bookstack] / resources / js / wysiwyg / plugins-customhr.js
index 0744f113f43461c7f519d19ab67f6c5b5f60dee9..df1984d4ee998ae4e61f4f6b95721fee1f5919fb 100644 (file)
@@ -10,18 +10,9 @@ function register(editor, url) {
         parentNode.insertBefore(hrElem, cNode);
     });
 
-    editor.ui.registry.addButton('hr', {
+    editor.ui.registry.addButton('customhr', {
         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');
         }