dans le fichier config.js je d?finis ma propre barre d'outil, je choisis mes boutons avec :
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
[
{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv',
'-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'insert', items : [ 'Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks' ] }
];
Dans le formulaire qui doit afficher les bloc wysiwyg j'ai simplement, dans un tableau tr?s laid, oui, je sais :
<TD valign="top" colspan=4 style="height:390px;">
<script src="../ckeditor/ckeditor.js"></script>
<script src="../ckfinder/ckfinder.js"></script>
<textarea name="article_texte" style="height:390px; width:400px;" >
<?
echo htmlentities(stripslashes($article_texte),ENT_COMPAT | ENT_HTML401,'ISO-8859-15');
//echo stripslashes($article_texte);
?>
</textarea>
<script>
var editor = CKEDITOR.replace( 'article_texte' );
CKFinder.setupCKEditor( editor, '/admin/ckfinder/' );
</script>
</TD>