mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Merge pull request #193 from ets-cfuhrman-pfe/JubaAzul/issue137
Some checks are pending
CI/CD Pipeline for Backend / build_and_push_backend (push) Waiting to run
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Waiting to run
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Waiting to run
Tests / tests (client) (push) Waiting to run
Tests / tests (server) (push) Waiting to run
Some checks are pending
CI/CD Pipeline for Backend / build_and_push_backend (push) Waiting to run
CI/CD Pipeline for Nginx Router / build_and_push_nginx (push) Waiting to run
CI/CD Pipeline for Frontend / build_and_push_frontend (push) Waiting to run
Tests / tests (client) (push) Waiting to run
Tests / tests (server) (push) Waiting to run
Ce n'est pas évident que le format [markdown] doit être utilisé pour les images
This commit is contained in:
commit
e9ae3237a0
2 changed files with 21 additions and 6 deletions
|
|
@ -153,7 +153,7 @@ const GiftCheatSheet: React.FC = () => {
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="question-type">
|
<div className="question-type" id="images-section">
|
||||||
<h4> 9. Images </h4>
|
<h4> 9. Images </h4>
|
||||||
<p>Il est possible d'insérer une image dans une question, une réponse (choix multiple) et dans une rétroaction. D'abord, <strong>le format de l'élément doit être [markdown]</strong>. Ensuite utilisez la syntaxe suivante :</p>
|
<p>Il est possible d'insérer une image dans une question, une réponse (choix multiple) et dans une rétroaction. D'abord, <strong>le format de l'élément doit être [markdown]</strong>. Ensuite utilisez la syntaxe suivante :</p>
|
||||||
<pre>
|
<pre>
|
||||||
|
|
@ -185,8 +185,7 @@ const GiftCheatSheet: React.FC = () => {
|
||||||
Attention: l'ancienne fonctionnalité avec les balises <code>{'<img>'}</code> n'est plus
|
Attention: l'ancienne fonctionnalité avec les balises <code>{'<img>'}</code> n'est plus
|
||||||
supportée.
|
supportée.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="question-type">
|
<div className="question-type">
|
||||||
<h4> 10. Informations supplémentaires </h4>
|
<h4> 10. Informations supplémentaires </h4>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
||||||
|
|
@ -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(() => {
|
useEffect(() => {
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
const userFolders = await ApiService.getUserFolders();
|
const userFolders = await ApiService.getUserFolders();
|
||||||
|
|
@ -278,10 +286,18 @@ const QuizForm: React.FC = () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4>Mes images :</h4>
|
<h4>Mes images :</h4>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div>(Cliquez sur un lien pour le copier)</div>
|
<div>
|
||||||
<ul>
|
<div style={{ display: "inline" }}>(Voir section </div>
|
||||||
|
<a href="#images-section"style={{ textDecoration: "none" }} onClick={scrollToImagesSection}>
|
||||||
|
<u><em><h4 style={{ display: "inline" }}> 9. Images </h4></em></u>
|
||||||
|
</a>
|
||||||
|
<div style={{ display: "inline" }}> ci-dessous</div>
|
||||||
|
<div style={{ display: "inline" }}>)</div>
|
||||||
|
<br />
|
||||||
|
<em> - Cliquez sur un lien pour le copier</em>
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
{imageLinks.map((link, index) => {
|
{imageLinks.map((link, index) => {
|
||||||
const imgTag = `} "texte de l'infobulle")`;
|
const imgTag = `} "texte de l'infobulle")`;
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue