Problème caractères spéciaux avec Tiny MCE

Publié le par Hanen SAADOUN

Mon expérience avec l'éditeur de texte sur le web Tiny MCE n'était pas trop sympa surtout au niveau des caractères spéciaux .
Mais enfin j'ai eu la solution  : pour taiter les caractères spéciaux ajoutez cette ligne dans la partie JS de Tiny MCE:
entity_encoding : "raw"

Exemple d'utilisation:

$('textarea.tinymce').tinymce({

// Location of TinyMCE script

script_url : 'tiny_mce/tiny_mce.js',

// General options

theme : "advanced",

plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions",

// Theme options

theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough",

entity_encoding : "raw"

});



Publié dans P'tites Astuces

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article
T
<br /> Merci très utile ça fonctionne<br />
Répondre