From a75d4ce88bda49b2ad169809f9307820d2c8f819 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Mon, 22 Feb 2021 12:58:56 +0200
Subject: [PATCH] add hyphens to classes

---
 .../components/customtag/CustomTagInlineOverlayCompoment.js   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js b/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js
index 7f293860a..aed8e0827 100644
--- a/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js
+++ b/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js
@@ -142,7 +142,7 @@ const CustomTagInlineOverlayComponent = ({ mark, setPosition, position }) => {
         state.schema.marks.customTagInline.create({
           ...((mark && mark.attrs) || {}),
           tags,
-          class: tags.toString(),
+          class: tags.toString().replace(/ /g, '-'),
         }),
       ),
     );
@@ -169,7 +169,7 @@ const CustomTagInlineOverlayComponent = ({ mark, setPosition, position }) => {
             state.schema.marks.customTagInline.create({
               ...((mark && mark.attrs) || {}),
               tags,
-              class: tags.toString(),
+              class: tags.toString().replace(/ /g, '-'),
             }),
           ),
         );
-- 
GitLab