| [ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 556 lines (15 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
CKEditor:: (14 methods):
__construct()
editor()
replace()
replaceAll()
addEventHandler()
clearEventHandlers()
addGlobalEventHandler()
clearGlobalEventHandlers()
script()
configSettings()
returnGlobalEvents()
init()
ckeditorPath()
jsEncode()
| __construct($basePath = null) X-Ref |
| Main Constructor. param: $basePath (string) URL to the %CKEditor installation directory (optional). |
| editor($name, $value = "", $config = array() X-Ref |
| Creates a %CKEditor instance. In incompatible browsers %CKEditor will downgrade to plain HTML <textarea> element. param: $name (string) Name of the %CKEditor instance (this will be also the "name" attribute of textarea element). param: $value (string) Initial value (optional). param: $config (array) The specific configurations to apply to this editor instance (optional). param: $events (array) Event listeners for this editor instance (optional). |
| replace($id, $config = array() X-Ref |
| Replaces a <textarea> with a %CKEditor instance. param: $id (string) The id or name of textarea element. param: $config (array) The specific configurations to apply to this editor instance (optional). param: $events (array) Event listeners for this editor instance (optional). |
| replaceAll($className = null) X-Ref |
| Replace all <textarea> elements available in the document with editor instances. param: $className (string) If set, replace all textareas with class className in the page. |
| addEventHandler($event, $javascriptCode) X-Ref |
| Adds event listener. Events are fired by %CKEditor in various situations. param: $event (string) Event name. param: $javascriptCode (string) Javascript anonymous function or function name. |
| clearEventHandlers($event = null) X-Ref |
| Clear registered event handlers. Note: this function will have no effect on already created editor instances. param: $event (string) Event name, if not set all event handlers will be removed (optional). |
| addGlobalEventHandler($event, $javascriptCode) X-Ref |
| Adds global event listener. param: $event (string) Event name. param: $javascriptCode (string) Javascript anonymous function or function name. |
| clearGlobalEventHandlers($event = null) X-Ref |
| Clear registered global event handlers. Note: this function will have no effect if the event handler has been already printed/returned. param: $event (string) Event name, if not set all event handlers will be removed (optional). |
| script($js) X-Ref |
| Prints javascript code. param: string $js |
| configSettings($config = array() X-Ref |
| Returns the configuration array (global and instance specific settings are merged into one array). param: $config (array) The specific configurations to apply to editor instance. param: $events (array) Event listeners for editor instance. |
| returnGlobalEvents() X-Ref |
| Return global event handlers. |
| init() X-Ref |
| Initializes CKEditor (executed only once). |
| ckeditorPath() X-Ref |
| Return path to ckeditor.js. |
| jsEncode($val) X-Ref |
| This little function provides a basic JSON support. param: mixed $val return: string |
| Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |