1/ Telechargement et installation
Vous pouvez telecharger la dernière version de dotclear sur le site officiel :
http://www.fckeditor.net/
Décompressez ensuite l’archive dans votre répèrtoire dotclear/ecrire
2/ Prise en charge de FCKeditor
Editez le fichier dotclear/ecrire/poster.php
Ajoutez dans la partie include :
include dirname(__FILE__).'/FCKeditor/fckeditor.php';
Mettez en commentaire :
'<p>'.form::textArea('p_content',60,$_SESSION['sess_user_edit_size'], htmlspecialchars($content),6,'class="max"').'</p>';
Puis ajoutez :
$oFCKeditor = new FCKeditor('p_content') ;$oFCKeditor->BasePath = "http://votresite.fr/votrerepertoiredotclear/ecrire/FCKeditor/" ;$oFCKeditor->Height = "400" ;$oFCKeditor->Value = $content;//'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;$oFCKeditor->Create() ;
Et voila le tour est joué, vous pouvez ajouter un billet avec FCKeditor !
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
Dérnier commentaires