From 629794fff59083d78213cf26de35dc1a15e7cb05 Mon Sep 17 00:00:00 2001
From: "guilhem.carron" <gcarron@grandlyon.com>
Date: Tue, 10 Aug 2021 14:11:12 +0200
Subject: [PATCH] Add api key

---
 src/components/MonthlyNews/MonthlyNews.tsx | 12 +++++++-----
 src/components/Poll/Poll.tsx               |  1 +
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/components/MonthlyNews/MonthlyNews.tsx b/src/components/MonthlyNews/MonthlyNews.tsx
index b3481458..0d9c5ac6 100644
--- a/src/components/MonthlyNews/MonthlyNews.tsx
+++ b/src/components/MonthlyNews/MonthlyNews.tsx
@@ -28,6 +28,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
       </div>
       <div>
         <Editor
+          apiKey="2abhh1p06eeeybqtiohaz5u6pvqjk6kg3mh25acw56cknqeg"
           init={{
             menubar: false,
             toolbar:
@@ -43,6 +44,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
         </div>
 
         <Editor
+          apiKey="2abhh1p06eeeybqtiohaz5u6pvqjk6kg3mh25acw56cknqeg"
           init={{
             menubar: false,
             toolbar:
@@ -57,7 +59,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
                       text: 'consumption',
                       onAction: function () {
                         editor.insertContent(
-                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/consumption">Page de consommation</a>'
+                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/consumption">page de consommation</a>'
                         )
                       },
                     },
@@ -66,7 +68,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
                       text: 'challenges',
                       onAction: function () {
                         editor.insertContent(
-                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/challenges">Page challenges</a>'
+                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/challenges">page challenges</a>'
                         )
                       },
                     },
@@ -75,7 +77,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
                       text: 'ecogestures',
                       onAction: function () {
                         editor.insertContent(
-                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/ecogestures">Page ecogestures</a>'
+                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/ecogestures">page ecogestures</a>'
                         )
                       },
                     },
@@ -84,7 +86,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
                       text: 'analysis',
                       onAction: function () {
                         editor.insertContent(
-                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/analysis">Page analyse</a>'
+                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/analysis">page analyse</a>'
                         )
                       },
                     },
@@ -93,7 +95,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
                       text: 'options',
                       onAction: function () {
                         editor.insertContent(
-                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/options">Page options</a>'
+                          '&nbsp;<a href="https://ecolyo.{cozyUrl}/options">page options</a>'
                         )
                       },
                     },
diff --git a/src/components/Poll/Poll.tsx b/src/components/Poll/Poll.tsx
index 25c71fb0..91086099 100644
--- a/src/components/Poll/Poll.tsx
+++ b/src/components/Poll/Poll.tsx
@@ -40,6 +40,7 @@ const Poll: React.FC<PollProps> = ({
         <p className="title">Question</p>
 
         <Editor
+          apiKey="2abhh1p06eeeybqtiohaz5u6pvqjk6kg3mh25acw56cknqeg"
           init={{
             menubar: false,
             toolbar:
-- 
GitLab