Interface CLEditor

An editor is composed of a main div element used to hold a toolbar, a text area and an iframe. The toolbar can hold multiple groups which in turn hold multiple buttons.

Index

Properties

Methods

Properties

public $area: JQuery

public $frame: JQuery

public $main: JQuery

public $toolbar: JQuery

public disabled: boolean

public doc: Document

public options: JQueryCLEditorOptions

Methods

public change(handler: Function): CLEditor

Parameters

  • handler: Function

Returns

CLEditor

public clear(): CLEditor

Returns

CLEditor

public disable(disabled: boolean): CLEditor

Parameters

  • disabled: boolean

Returns

CLEditor

public execCommand(commands: string, value: any, useCSS?: boolean, button?: any): CLEditor

Parameters

  • commands: string
  • value: any
  • useCSS?: boolean optional
  • button?: any optional

Returns

CLEditor

public focus(): CLEditor

Returns

CLEditor

public hidePopups(): CLEditor

Returns

CLEditor

public refresh(): CLEditor

Returns

CLEditor

public select(): CLEditor

Returns

CLEditor

public selectedHTML(): string

Returns

string

public selectedText(): string

Returns

string

public showMessage(message: string, button?: any): CLEditor

Parameters

  • message: string
  • button?: any optional

Returns

CLEditor

public sourceMode(): boolean

Returns

boolean

public updateFrame(): CLEditor

Returns

CLEditor

public updateTextArea(): CLEditor

Returns

CLEditor