Class element

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(name: string, attributes: Object): element

Parameters

  • name: string
  • attributes: Object

Returns

element

Properties

public attributes: Object

public children: Array<Object>

public name: string

public type: number

Methods

public add(node: node): number

Parameters

Returns

number

public clone(): element

Returns

element

public filter(filter: filter): boolean

Parameters

Returns

boolean

public filterChildren(filter: filter)

Parameters

public forEach(callback: (node: CKEDITOR.htmlParser.node, type?: number) => boolean)

Parameters

  • callback: (node: CKEDITOR.htmlParser.node, type?: number) => boolean

public getAscendant(condition: string): element

Parameters

  • condition: string

Returns

element

public getAscendant(condition: Object): element

Parameters

  • condition: Object

Returns

element

public getAscendant(condition: Function): element

Parameters

  • condition: Function

Returns

element

public getFirst(condition: string): node

Parameters

  • condition: string

Returns

node

public getFirst(condition: Object): node

Parameters

  • condition: Object

Returns

node

public getFirst(condition: Function): node

Parameters

  • condition: Function

Returns

node

public getHtml(): string

Returns

string

public getIndex(): number

Returns

number

public getOuterHtml(): string

Returns

string

public hasClass(className: string): boolean

Parameters

  • className: string

Returns

boolean

public insertAfter(node: node)

Parameters

public insertBefore(node: node)

Parameters

public remove(preserveChildren?: boolean): node

Parameters

  • preserveChildren?: boolean optional

Returns

node

public removeClass(className: string)

Parameters

  • className: string

public replaceWith(node: node)

Parameters

public replaceWithChildren()

public setHtml(html: string)

Parameters

  • html: string

public split(index: number): element

Parameters

  • index: number

Returns

element

public wrapWith(wrapper: element): element

Parameters

Returns

element

public writeChildrenHtml(writer: basicWriter, filter: filter)

Parameters

public writeHtml(writer: basicWriter, filter: filter)

Parameters