From 4cbabcb3ee604aded39b90c786b081fdbb3fa13c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20PAILHAREY?= <rpailharey@grandlyon.com>
Date: Wed, 22 Mar 2023 12:40:05 +0000
Subject: [PATCH] fix(newsletter): links title correctly displayed

---
 src/components/Editing/CustomEditor.tsx | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/components/Editing/CustomEditor.tsx b/src/components/Editing/CustomEditor.tsx
index 960aa784..0018458f 100644
--- a/src/components/Editing/CustomEditor.tsx
+++ b/src/components/Editing/CustomEditor.tsx
@@ -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(
-- 
GitLab