getService

returns a service available for Rich Text Editor

object getService(string service);
servicestringthe service name
objectthe object with the service methods

Example

const backend = $$("editor").getService("backend");

Details

Services are major blocks of inner logic of the widget. Their methods can be called directly as well as customized.

Rich Text Editor has access to the following services:

  • "upload" - handles uploading of images added to the document;
  • "operations" - processes all inner actions;
  • "backend" - handles export and import of files.
See also
Back to top