Hi everybody,
I just started using CKEditor. In the "_samples" folder that comes with the editor, there is a "php" folder with calls to CKEditor in php, like the following:
By the look of it, I assume there is a PHP API, but I was unable to find any documentation...Until now I have been using CKEditor the following way:
Which is far from convenient...
Can somebody point me to some documentation please?
Aziz Light
I just started using CKEditor. In the "_samples" folder that comes with the editor, there is a "php" folder with calls to CKEditor in php, like the following:
<?php
// Include CKEditor class.
include_once "../../ckeditor.php";
// The initial value to be displayed in the editor.
$initialValue = '<p>This is some <strong>sample text</strong>.</p>';
// Create class instance.
$CKEditor = new CKEditor();
// 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 = '../../';
// Create textarea element and attach CKEditor to it.
$CKEditor->editor("editor1", $initialValue);
?>
By the look of it, I assume there is a PHP API, but I was unable to find any documentation...Until now I have been using CKEditor the following way:
// CKeditor
echo "<script type=\"text/javascript\">\n";
echo "\tCKEDITOR.replace('${leNom}',\n";
echo "\t{\n";
echo "\t\ttoolbar : 'sml'\n";
echo "\t}\n";
echo ");\n";
echo "</script>";
Which is far from convenient...
Can somebody point me to some documentation please?
Aziz Light

Re: PHP API/Documentation
$oFCKeditor = new FCKeditor('my_text_box') ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = $my_saved_comments; $oFCKeditor->Height = '200'; $oFCKeditor->Width = '600'; $oFCKeditor->Config['ToolbarStartExpanded'] = true; $oFCKeditor->Create();Re: PHP API/Documentation
Re: PHP API/Documentation