I did it like this (using the jQuery adapter to start CKEditor):

<script type="text/javascript">
$(function() {
    var toolbar = [
        { name: 'document',    items : [ 'Source' ] },
        { name: 'clipboard',   items : [ 
'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
        { name: 'links',       items : [ 'Link','Unlink','Anchor' ] },
        { name: 'insert',      items : [ 
'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar' ] },
        { name: 'editing',     items : [ 
'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
        { name: 'tools',       items : [ 'Maximize', 
'ShowBlocks','-','About' ] },
        '/',
        { name: 'styles',      items : [ 'Format','FontSize' ] },
        { name: 'colors',      items : [ 'TextColor' ] },
        { 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'
 
] }
    ];
    
    $('textarea').ckeditor(function(e) {},
        {
            toolbar : toolbar,
        }
    );
});
</script>

Anthony

Reply via email to