diff --git a/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js b/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js index 7f293860a0d979ccd46f97167932cfaca8135717..aed8e0827c3373cedb18fb8202cc86d529b236ac 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, '-'), }), ), );