Class document

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(domDocument: Object): document

Parameters

  • domDocument: Object

Returns

document

Properties

public $: HTMLElement

public type: number

Methods

public appendStyleSheet(cssFileUrl: string)

Parameters

  • cssFileUrl: string

public appendStyleText(cssStyleText: string): Object

Parameters

  • cssStyleText: string

Returns

Object

public clearCustomData()

public createElement(name: string, attribsAndStyles?: { attributes: Object; styles: Object; }): element

Parameters

  • name: string
  • attribsAndStyles?: { attributes: Object; styles: Object; } optional

Returns

element

public createText(text: string): element

Parameters

  • text: string

Returns

element

public equals(object: any): boolean

Parameters

  • object: any

Returns

boolean

public find(selector: string): nodeList

Parameters

  • selector: string

Returns

nodeList

public findOne(selector: string): element

Parameters

  • selector: string

Returns

element

public focus()

public getActive(): element

Returns

element

public getBody(): element

Returns

element

public getByAddress(address: Array<any>, normalized?: boolean): node

Parameters

  • address: Array<any>
  • normalized?: boolean optional

Returns

node

public getById(elementId: string): element

Parameters

  • elementId: string

Returns

element

public getCustomData(key: string): any

Parameters

  • key: string

Returns

any

public getDocumentElement(): element

Returns

element

public getElementsByTag(tagName: string): nodeList

Parameters

  • tagName: string

Returns

nodeList

public getHead(): element

Returns

element

public getKey(): number

Returns

number

public getKeystroke(): number

Returns

number

public getPhase(): number

Returns

number

public getPhaseOffset(): position

Returns

position

public getPrivate(): any

Returns

any

public getSelection(): selection

Returns

selection

public getTarget(): node

Returns

node

public getUniqueId(): number

Returns

number

public getWindow(): window

Returns

window

public on(eventName: string, listenerFunction: (eventInfo: CKEDITOR.eventInfo) => void, scopeObj?: Object, listenerData?: Object, priority?: number): Object

Parameters

  • eventName: string
  • listenerFunction: (eventInfo: CKEDITOR.eventInfo) => void
  • scopeObj?: Object optional
  • listenerData?: Object optional
  • priority?: number optional

Returns

Object

public preventDefault(stopPropagation: boolean)

Parameters

  • stopPropagation: boolean

public removeAllListeners()

public removeCustomData(key: string): Object

Parameters

  • key: string

Returns

Object

public setCustomData(key: string, value: Object): domObject

Parameters

  • key: string
  • value: Object

Returns

domObject

public stopPropagation()

public write(html: string)

Parameters

  • html: string