Skip to content
Snippets Groups Projects
Commit a75d4ce8 authored by chris's avatar chris
Browse files

add hyphens to classes

parent 5908d3b5
No related branches found
No related tags found
1 merge request!242Feature improvments
......@@ -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, '-'),
}),
),
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment