Fork me on GitHub

Rapport de message :*
 

Re: changer icones éditeur dhtmltextarea

Titre du sujet : Re: changer icones éditeur dhtmltextarea
par Nikita sur 20/05/2018 18:12:01

Je peux t'assurer que dans un xoops 2.5.7 que j'utilise je peux faire ce clic droit et j'ai les options pour afficher l'image, copier l'image et voir l'adresse, mais pas dans le xoops 2.5.9 où je veux changer les images

pour le bouton youtube dans la 2.5.7 par exemple (j'ai le path de l'image)
function encode($textarea_id)     {         $config parent::loadConfigdirname(__FILE__) );         $code "<img src='{$this->image_path}/youtube.gif' alt='" _XOOPS_FORM_ALTYOUTUBE "' onclick='xoopsCodeYoutube("{$textarea_id}","" . htmlspecialchars(_XOOPS_FORM_ENTERYOUTUBEURL, ENT_QUOTES) . "","" . htmlspecialchars(_XOOPS_FORM_ALT_ENTERHEIGHT, ENT_QUOTES) . "","" . htmlspecialchars(_XOOPS_FORM_ALT_ENTERWIDTH, ENT_QUOTES) . "");'  onmouseover='style.cursor="hand"'/>&nbsp;";


pour le bouton youtube dans la 2.5.9 (pas de path)
$code "<button type='button' class='btn btn-default btn-sm' onclick='xoopsCodeYoutube("{$textarea_id}",""             . htmlspecialchars(_XOOPS_FORM_ENTERYOUTUBEURL, ENT_QUOTES) . "",""             . htmlspecialchars(_XOOPS_FORM_ALT_ENTERHEIGHT, ENT_QUOTES) . "",""             . htmlspecialchars(_XOOPS_FORM_ALT_ENTERWIDTH, ENT_QUOTES)             . "");' onmouseover='style.cursor="hand"' title='" _XOOPS_FORM_ALTYOUTUBE             "'><span class='fa fa-fw fa-youtube' aria-hidden='true'></span></button>";


Après recherche dans la 2.5.9 c'est la bibliothèque Font Awesome qui est utilisée, la feuille de style CSS est dans le dossier /media/font-awesome/css...

Merci pour ton aide


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

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