
Quoi de mieux qu'un support en direct avec le développeur :)
Vous n'êtes pas identifié.
Bonjour,
En voulant intégrer fckeditor, je me suis heurté à quelques petits soucis qui à mon sens proviennent de la fonction du kernel/admin_functions.php qui utilise la classe de ce plugin.
Principale raison de cette correction, champ de saisie en tête de page en dehors des balises <form></form>.
J'ai donc corrigé la fonction ainsi et remplacé les lignes de codes par celles ci :
kernel/admin_functions.php : vers la ligne 21 rechercher :
PUBLIC FUNCTION FCKeditor_Edit_Center( $title, $input, $value, $type ) {
if ( is_file(PATH.'FCKeditor/fckeditor.php') )
include_once(PATH.'FCKeditor/fckeditor.php');
$tpl->content .= $title."<br/>\n";
$oFCKeditor = new FCKeditor( $input) ;
$oFCKeditor->Height = '400';
$oFCKeditor->Width = '96%';
$oFCKeditor->InstanceName = $input ;
$oFCKeditor->Value = $value ;
$oFCKeditor->Create() ;
}
Remplacer par :
/*SySwatis fix bug */
PUBLIC FUNCTION FCKeditor_Edit_Center( $title, $input, $value, $type ) {
if ( is_file(PATH.'fckeditor/fckeditor.php') ) {
include_once(PATH.'fckeditor/fckeditor.php');
$content = $title."<br/>\n";
$oFCKeditor = new FCKeditor($input);
$oFCKeditor->BasePath = './fckeditor/';
$oFCKeditor->Height = '400';
$oFCKeditor->Width = '100%';
$oFCKeditor->InstanceName = $input ;
$oFCKeditor->Value = $value;
$content .= $oFCKeditor->CreateHtml().'<br /><br />'."\n";
return $content;
}
}
Note : le nom du répertoire par défaut du wysiwyg : "fckeditor".
Je vous laisse libre de commenter cette NanoModification :-)
.: SyS :.
Dernière modification par SySwatis (17-05-2010 07:32:16)
Hors ligne
bonjour à tous,
Nouveau venu alors:
merci pour ce hack 
ce nanocms est bien né et surtout bien venu !
Merci pour tout ce boulot (Maxi, Blog....etc)
@ bientôt sur les forum
Hors ligne