Fork me on GitHub




« 1 (2)


Re: pourquoi ce caractère (&) s'incruste dans le texte
Semi pro
Inscrit: 18/12/2005 13:29
De Rebstein - Suisse
Messages: 517
Sauf erreur, tu as dernièrement installé l'éditeur fckeditor et lasco t'as donné un lien pour télécharger la dernière version.

En allant regarder sur le site proposé par lasco, j'ai vu qu'il y avait un problème avec les caractères spéciaux

Citation :
HTML Special Characters Issue For whatever reason, this error still persists — even in the XOOPS 2.3.3 release of FCKeditor 2.6.3. XoopsEditor 1.21 solved it by getting rid of the undoHtmlSpecialChars call in formfckeditor.php (as introduced in the XoopsEditor 1.10 release). However, it was re-introduced. I expect there is a reason that this call is made by FCKeditor for some sort of protection in case someone adds a special character in the source side - ::shrug:: This fix applies to FCKeditor 2.6.3 as released in XOOPS 2.3.3. Using any special characters cause an unintended cascading effect of ampersand conversion. For instance, a quote " will become " in the code — as it should be. However, after FCKeditor retrieves it from the database and displays it, it becomes " in the WYSIWYG instead of ". The next time it becomes " and then " ad infinitum. What I had to do was change fckeditor_php4.php and fckeditor_php5.php, approximately line 158 to (in function CreateHtml): // $HtmlValue = htmlspecialchars( $this->Value ) ; $myts =& MyTextSanitizer::getInstance(); $HtmlValue = $myts->htmlSpecialChars( $this->Value ) ; This is because this XOOPS implementation uses the $myts->undoHtmlSpecialChars function before throwing it back into the database so we need to use the XOOPS version of the htmlspecialchars function.


Bon, je ne suis pas très fort en anglais mais je crois comprendre qu'il faut modifier quelques lignes dans quelques fichiers.

Maintenant, reste à savoir si ces problèmes de caractères spéciaux sont liés uniquement à fckeditor avec Xoops 2.3.3

Peux-tu tester ?

Posté le : 06/06/2009 22:31
Partager Twitter Partagez cette article sur GG+
Re: pourquoi ce caractère (&) s'incruste dans le texte
Aspirant
Inscrit: 19/04/2009 22:54
Messages: 43
je vais ésseiller merci

Posté le : 06/06/2009 23:02
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
« 1 (2)



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

44 Personne(s) en ligne (37 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 44 | Plus ...