CKEDITOR.tools Class
src/core/tools.js:4
CKEDITOR.tools class utility which adds additional methods to those of CKEditor.
Methods
jsonp
-
urlTemplate -
callback -
errorCallback -
urlParams
Sends a request using the JSONP technique.
Parameters:
-
urlTemplateCKEDITOR.templateThe template of the URL to be requested. All properties passed in
urlParamscan be used, plus a{callback}, which represent a JSONP callback, must be defined. -
callbackFunctionA function to be called in case of success.
-
errorCallbackFunctionA function to be called in case of failure.
-
urlParamsObjectParameters to be passed to the
urlTemplate.
Returns:
An object with the following properties:
- id: the transaction ID
- a
cancel()method
merge
-
objects
Returns a new object containing all of the properties of all the supplied objects. The properties from later objects will overwrite those in earlier objects.
Passing in a single object will create a shallow copy of it.
Parameters:
-
objectsObject multipleOne or more objects to merge.
Returns:
A new merged object.
simulate
-
element -
event
Simulates event on a DOM element.
Parameters:
-
elementDOMElementThe element on which the event shoud be simualted.
-
eventStringThe name of the event which have to be simulated.