1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| $CKEditor = new CKEditor();
$CKEditor->basePath = '/ckeditor/';
$CKEditor->returnOutput = true;
$CKEditor->config['height'] = 400;
$CKEditor->config['width'] = '@@screen.width * 0.8';
$CKEditor->config['uiColor'] = '#5F5F5F';
$CKEditor->config['toolbar'] = array(
array('Bold','Italic','Underline','Strike','-','Subscript','Superscript'),
array('NumberedList','BulletedList','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array('BidiLtr', 'BidiRtl','-','Link','Unlink' ),
array('Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','-','Source'),
'/',
array('Styles','Format','Font','FontSize'),
array('Undo','Redo','-','TextColor','BGColor'),
array('Maximize', 'ShowBlocks','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Print', 'SpellChecker', 'Scayt')
);
$code = $CKEditor->editor("my_body", $body);
echo $code; |
Partager