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>
|
||||
</div>
|
||||
|
||||
<div className="question-type">
|
||||
<div className="question-type" id="images-section">
|
||||
<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>
|
||||
<pre>
|
||||
|
|
@ -186,7 +186,6 @@ const GiftCheatSheet: React.FC = () => {
|
|||
supportée.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="question-type">
|
||||
<h4> 10. Informations supplémentaires </h4>
|
||||
<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(() => {
|
||||
const fetchData = async () => {
|
||||
const userFolders = await ApiService.getUserFolders();
|
||||
|
|
@ -278,9 +286,17 @@ const QuizForm: React.FC = () => {
|
|||
</div>
|
||||
|
||||
<h4>Mes images :</h4>
|
||||
|
||||
<div>
|
||||
<div>(Cliquez sur un lien pour le copier)</div>
|
||||
<div>
|
||||
<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) => {
|
||||
const imgTag = `} "texte de l'infobulle")`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue