Skip to content
Snippets Groups Projects
Commit bca7f7d9 authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

Merge branch '24-lettre-mensuelle-ajouter-une-majuscule-a-chaque-nom-de-page' into 'dev'

Resolve "[LETTRE MENSUELLE] Ajouter une majuscule à chaque nom de page"

See merge request !130
parents 19a942cc 0adbc91a
No related branches found
No related tags found
2 merge requests!131MEP,!130Resolve "[LETTRE MENSUELLE] Ajouter une majuscule à chaque nom de page"
Pipeline #77715 passed
......@@ -23,7 +23,7 @@ const CustomLink: React.FC<EcolyoLinkProps> = ({ onChange, editorState }) => {
link: 'ecogestures',
},
{
displayTitle: 'Sélection des astuces',
displayTitle: 'Sélection des Astuces',
link: 'ecogesture-selection',
},
{
......@@ -36,9 +36,7 @@ const CustomLink: React.FC<EcolyoLinkProps> = ({ onChange, editorState }) => {
},
]
const appendLink = (link: LinkState) => {
const data = `<a href="{cozyUrl}${
link.link
}">${link.displayTitle.toLowerCase()}</a>`
const data = `<a href="{cozyUrl}${link.link}">${link.displayTitle}</a>`
const { contentBlocks, entityMap } = htmlToDraft(data)
const contentState = Modifier.replaceWithFragment(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment