Anomalie #17258
[éditon de modèles] URL relatives converties par TinyMCE
Description
Maarch Courrier 21.03
On ne peut pas mettre dans un modèle de notification un lien avec pour cible l’application elle-même.
Par exemple :
Aller sur https://demo.maarchcourrier.com/
Administration > Modèles de document > Éditer un modèle de notification > Code source > Ajouter un lien vers l’appli elle-même :
<a href="https://demo.maarchcourrier.com/">https://demo.maarchcourrier.com/</a>
Enregistrer > Faire retour puis revenir à nouveau dans le code source du modèle pour vérifier, on a :
<a href="../">https://demo.maarchcourrier.com/</a>
Par défaut TinyMCE convertit les URL en chemins relatifs, comme vu sur la doc ci-dessous :
https://www.tiny.cloud/docs/configure/url-handling/#relative_urls
Solution :
Dans le fichier src/frontend/app/administration/template/template-administration.component.ts ligne 209 et suivantes (tinymce.init()
), il faut ajouter relative_urls: false
.
History
#2 Updated by Emmanuel DILLARD 12 months ago
- Status changed from A qualifier to A étudier
- Assignee changed from EDI PO to Florian AZIZIAN
- Target version changed from Inscription Backlog Courrier to 21.03 (stable)
#3 Updated by Florian AZIZIAN 12 months ago
- Project changed from Backlog to CURRENT SPRINT
- Status changed from A étudier to En cours de dev (S)
- Tags Courrier 21.03.5 added
Reproduit sur la develop.
Il faudrait plutôt utiliser le paramètre convert_urls (https://www.tiny.cloud/docs/configure/url-handling/#convert_urls)
Il est a true par defaut. Il faut le mettre à false.
Ainsi, les url renseignées ne seront jamais modifiées par tinyMce
A faire sur tous les endroits où on utilise tinymce
#8 Updated by Alex ORLUC 11 months ago
- Status changed from A tester (S) to Développé / Analysé (S)
#10 Updated by Emmanuel DILLARD 11 months ago
- Project changed from CURRENT SPRINT to Backlog
#11 Updated by Emmanuel DILLARD 11 months ago
- Project changed from Backlog to Backlog Courrier
- Target version changed from Courrier Develop to Develop
#12 Updated by Emmanuel DILLARD 11 months ago
- Assignee changed from Florian AZIZIAN to Quentin RIBAC