diff --git a/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx b/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx index 1228869..98d2b96 100644 --- a/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx +++ b/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx @@ -153,7 +153,7 @@ const GiftCheatSheet: React.FC = () => { -
+

9. Images

Il est possible d'insérer une image dans une question, une réponse (choix multiple) et dans une rétroaction. D'abord, le format de l'élément doit être [markdown]. Ensuite utilisez la syntaxe suivante :

@@ -185,8 +185,7 @@ const GiftCheatSheet: React.FC = () => {
                     Attention: l'ancienne fonctionnalité avec les balises {''} n'est plus
                     supportée.
                 

-
- +

10. Informations supplémentaires

diff --git a/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx b/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx index 8bd6003..453d5c9 100644 --- a/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx +++ b/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx @@ -61,6 +61,14 @@ const QuizForm: React.FC = () => { }; }, []); + const scrollToImagesSection = (event: { preventDefault: () => void; }) => { + event.preventDefault(); + const section = document.getElementById('images-section'); + if (section) { + section.scrollIntoView({ behavior: 'smooth' }); + } + }; + useEffect(() => { const fetchData = async () => { const userFolders = await ApiService.getUserFolders(); @@ -278,10 +286,18 @@ const QuizForm: React.FC = () => {

Mes images :

-
-
(Cliquez sur un lien pour le copier)
-