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

Merge branch '16-les-liens-affichent-undefined' into 'dev'

Resolve "Les liens affichent undefined"

See merge request !92
parents 37721b0f 4cbabcb3
No related branches found
No related tags found
3 merge requests!96Deploy OpenShift v2,!95MEP fix liens undefined,!92Resolve "Les liens affichent undefined"
Pipeline #55455 passed
......@@ -30,11 +30,6 @@ const CustomEditor: React.FC<CustomEditorProps> = ({
const alt = data.alt ? data.alt : ''
return `<p style="text-align:${textAlign};"><img src="${data.src}" alt="${alt}" style="height: ${data.height};width: ${data.width}"/></p>`
}
if (type === 'LINK') {
return `<a href=${data.href ? data.href : data.url} title=${
data.title
}>${data.title}</a>`
}
}
return state.getCurrentContent().hasText()
? draftToHtml(
......
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