CKEditor Sample

Output


returnOutput = true; // Path to CKEditor directory, ideally instead of relative dir, use an absolute path: // $CKEditor->basePath = '/ckeditor/' // If not set, CKEditor will try to detect the correct path. $CKEditor->basePath = '../../'; // Set global configuration (will be used by all instances of CKEditor). $CKEditor->config['width'] = 600; // Change default textarea attributes $CKEditor->textareaAttributes = array("cols" => 80, "rows" => 10); // The initial value to be displayed in the editor. $initialValue = '

This is some sample text. You are using CKEditor.

'; // Create first instance. $code = $CKEditor->editor("editor1", $initialValue); echo $code; ?>


editor("editor2", $initialValue, $config); ?>