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:
-
urlTemplate
CKEDITOR.templateThe template of the URL to be requested. All properties passed in
urlParams
can be used, plus a{callback}
, which represent a JSONP callback, must be defined. -
callback
FunctionA function to be called in case of success.
-
errorCallback
FunctionA function to be called in case of failure.
-
urlParams
ObjectParameters 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:
-
objects
Object multipleOne or more objects to merge.
Returns:
A new merged object.
simulate
-
element
-
event
Simulates event on a DOM element.
Parameters:
-
element
DOMElementThe element on which the event shoud be simualted.
-
event
StringThe name of the event which have to be simulated.