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
I'm also interested in the PHP API documentation. Attempting to migrate from FCKEditor 2.x to CKEditor, but there is one page in the documentation for PHP, but none listed here: http://docs.cksource.com/
My FCKEditor creation code is:
Re: PHP API/Documentation
Re: PHP API/Documentation