en tur forbi
http://stackoverflow.com/questions/3602837/ckeditor-php-integration<?php
require_once($_SERVER['DOCUMENT_ROOT']."/include/ckeditor/ckeditor.php");
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
// Create class instance.
$CKEditor = new CKEditor();
// Do not print the code directly to the browser, return it instead
$CKEditor->returnOutput = true;
//Set formatting options
$config['toolbar'] = array(
array(
'Bold','Italic','Underline', 'Smiley'
)
);
//Remove the html tags in the status bar (e.g. body p strong for when cursor is in a strong tag within a p tag within the body)
$config['removePlugins']='elementspath';
//Allow / deny resizing of editor from dragging the bottom-right corner. Maximize will still work.
$config['removePlugins']='resize';//Remove resize image
$config['resize_enabled ']=false;//Disallow resizing
//Remove the collapse formatting area button (arrow on the middle-right part of the editor
$config['toolbarCanCollapse']=false;
// The initial value to be displayed in the editor.
$initialValue = 'Hej';
// Create first instance.
$CKEditorOutput = $CKEditor->editor("continut",$initialValue,$config);
$output.='<div>'.$CKEditorOutput.'</div>';
echo $output;
?>
</body>
</html>
demo
http://olsensweb.dk/test/experten/spm/942566/ckeditor folderen er bare downloadet og lagt i include folderen, der er ikke nogle ændringer lavet
hvilke knapper er det du vil have ??