From ce6d9f9a2e8bbff80a4d950859001600cebdd347 Mon Sep 17 00:00:00 2001 From: JubaAzul <118773284+JubaAzul@users.noreply.github.com> Date: Tue, 14 Jan 2025 15:06:41 -0500 Subject: [PATCH 1/2] =?UTF-8?q?Ce=20n'est=20pas=20=C3=A9vident=20que=20le?= =?UTF-8?q?=20format=20[markdown]=20doit=20=C3=AAtre=20utilis=C3=A9=20pour?= =?UTF-8?q?=20les=20images=20Fixes=20#137?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx b/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx index e17c91c..7a2475f 100644 --- a/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx +++ b/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx @@ -260,8 +260,14 @@ const QuizForm: React.FC = () => {

Mes images :

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

9. Images

Pour insérer une image dans une question ou dans une réponse, vous devez utiliser la syntaxe suivante:

@@ -179,8 +179,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 7a2475f..796d5fe 100644 --- a/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx +++ b/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx @@ -41,6 +41,14 @@ const QuizForm: React.FC = () => { const fileInputRef = useRef(null); const [dialogOpen, setDialogOpen] = useState(false); + 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(); @@ -258,11 +266,13 @@ const QuizForm: React.FC = () => {

Mes images :

-
-
(Voir section ci-dessous :
-

9. Images

+
(Voir section
+ +

9. Images

+
+
ci-dessous
)

- Cliquez sur un lien pour le copier