1 | <? |
---|
2 | |
---|
3 | if(!function_exists('version_compare') || version_compare(phpversion(), '5', '<')) |
---|
4 | @include_once $path_abs.'components/CKEditor/ckeditor_php4.php'; |
---|
5 | else |
---|
6 | @include_once $path_abs.'components/CKEditor/ckeditor_php5.php'; |
---|
7 | |
---|
8 | $CKEditor = new CKEditor(); |
---|
9 | $CKEditor->basePath = $path_url.'components/CKEditor/'; |
---|
10 | $CKEditor->returnOutput = true; |
---|
11 | $CKEditor->textareaAttributes = array('id' => $id); |
---|
12 | $CKEditor->config['height'] = ($this->getTextLines() * 17) + 85; |
---|
13 | $CKEditor->config['uiColor'] = '#E8E8E8'; |
---|
14 | $CKEditor->config['toolbar'] = array( |
---|
15 | array('Source','-','NewPage','Preview','-','Templates'), |
---|
16 | array('Cut','Copy','Paste','PasteText','PasteFromWord','Print'), |
---|
17 | array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), |
---|
18 | array('BidiLtr', 'BidiRtl'), |
---|
19 | '/', |
---|
20 | array('Bold','Italic','Underline','Strike','-','Subscript','Superscript'), |
---|
21 | array('NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'), |
---|
22 | array('JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'), |
---|
23 | array('Link','Unlink','Anchor'), |
---|
24 | array('Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'), |
---|
25 | '/', |
---|
26 | array('Styles','Format','Font','FontSize'), |
---|
27 | array('TextColor','BGColor'), |
---|
28 | array('Maximize') |
---|
29 | ); |
---|
30 | |
---|
31 | echo $CKEditor->editor($id, $value); |
---|
32 | |
---|
33 | ?> |
---|