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

chore(release): fixed undefined links in newsletter

parent a3865f31
No related branches found
No related tags found
1 merge request!95MEP fix liens undefined
......@@ -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