\n\t\t\t\t\t\t\t{__(\n\t\t\t\t\t\t\t\t\"Ce bloc n'est relié à aucune question. Rattachez-le à une fiche question dans la barre latérale.\",\n\t\t\t\t\t\t\t\t\"homegrade-blocks__texte-fonctionnel\"\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\t\t)}\n\n\t\t\t\t{currentRelatedPost && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{__(\n\t\t\t\t\t\t\t\t\"Ce bloc n'est relié à aucune question. Rattachez-le à une fiche question dans la barre latérale.\",\n\t\t\t\t\t\t\t\t\"homegrade-blocks__texte-fonctionnel\"\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\t\t)}\n\n\t\t\t\t{currentRelatedPost && (\n\t\t\t\t\t<>\n\t\t\t\t\t\tLoading...
;\n\t}\n\n\tuseEffect(() => {\n\t\tif (currentPost.content) {\n\t\t\tlet newTooltipWords = buildTooltipWords(currentPost.content);\n\t\t\tsetAttributes({ tooltipWords: newTooltipWords });\n\t\t}\n\t}, [currentPost]);\n\n\tuseEffect(() => {\n\t\tif (!fetchedCurrentThematique) return;\n\t\tsetAttributes({ thematiqueName: fetchedCurrentThematique.name });\n\t}, [fetchedCurrentThematique, currentPost]);\n\n\treturn (\n\t\t\n\t\t\t\t\t\t\t\t{elem.tooltipDefinition}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{elem.tooltipDefinition}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{elem.tooltipDefinition}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t+ +
+Loading...
; - } - useEffect(() => { if (currentPost.content) { let newTooltipWords = buildTooltipWords(currentPost.content); @@ -100,11 +98,6 @@ export default function Edit({ attributes, setAttributes }) { } }, [currentPost]); - useEffect(() => { - if (!fetchedCurrentThematique) return; - setAttributes({ thematiqueName: fetchedCurrentThematique.name }); - }, [fetchedCurrentThematique, currentPost]); - return (+ +
+- {elem.tooltipDefinition} -
-