Show:
Defined in: src/core/tools.js:4

CKEDITOR.tools class utility which adds additional methods to those of CKEditor.

Index

Methods

Methods

jsonp

(
  • urlTemplate
  • callback
  • errorCallback
  • urlParams
)
Object static

Sends a request using the JSONP technique.

Parameters:

  • urlTemplate CKEDITOR.template

    The 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 Function

    A function to be called in case of success.

  • errorCallback Function

    A function to be called in case of failure.

  • urlParams Object

    Parameters to be passed to the urlTemplate.

Returns:

Object:

An object with the following properties:

  • id: the transaction ID
  • a cancel() method

merge

(
  • objects
)
Object static

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 multiple

    One or more objects to merge.

Returns:

Object:

A new merged object.

simulate

(
  • element
  • event
)
static

Simulates event on a DOM element.

Parameters:

  • element DOMElement

    The element on which the event shoud be simualted.

  • event String

    The name of the event which have to be simulated.