$version
$version :
The version of %CKEditor.
\private
\brief CKEditor class that can be used to create editor instances in PHP pages on server side.
$config :
An array that holds the global %CKEditor configuration.
For the list of available options, see http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
Example usage:
editor( $name, $value = "", $config = array(), $events = array())
Creates a %CKEditor instance.
In incompatible browsers %CKEditor will downgrade to plain HTML <textarea> element.
$name | (string) Name of the %CKEditor instance (this will be also the "name" attribute of textarea element). |
|
$value | (string) Initial value (optional). |
|
$config | (array) The specific configurations to apply to this editor instance (optional). |
|
$events | (array) Event listeners for this editor instance (optional). Example usage: |
replace( $id, $config = array(), $events = array())
Replaces a <textarea> with a %CKEditor instance.
$id | (string) The id or name of textarea element. |
|
$config | (array) The specific configurations to apply to this editor instance (optional). |
|
$events | (array) Event listeners for this editor instance (optional). Example 1: adding %CKEditor to <textarea name="article"></textarea> element: |
clearGlobalEventHandlers( $event = null)
Clear registered global event handlers.
Note: this function will have no effect if the event handler has been already printed/returned.
$event | (string) Event name, if not set all event handlers will be removed (optional). |
configSettings( $config = array(), $events = array())
Returns the configuration array (global and instance specific settings are merged into one array).
\private
$config | (array) The specific configurations to apply to editor instance. |
|
$events | (array) Event listeners for editor instance. |