Class fragment

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): fragment

Returns

fragment

Properties

public children: Array<Object>

public parent: Object

public type: number

Methods

public add(node: node, index?: number)

Parameters

  • node: node
  • index?: number optional

public filter(filter: filter)

Parameters

public filterChildren(filter: filter, filterRoot?: boolean)

Parameters

  • filter: filter
  • filterRoot?: boolean optional

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

Parameters

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

public fromHtml(fragmentHtml: string, parent?: element, fixingBlock?: string)

Parameters

  • fragmentHtml: string
  • parent?: element optional
  • fixingBlock?: string optional

public fromHtml(fragmentHtml: string, parent?: string, fixingBlock?: string)

Parameters

  • fragmentHtml: string
  • parent?: string optional
  • fixingBlock?: string optional

public fromHtml(fragmentHtml: string, parent?: element, fixingBlock?: boolean)

Parameters

  • fragmentHtml: string
  • parent?: element optional
  • fixingBlock?: boolean optional

public fromHtml(fragmentHtml: string, parent?: string, fixingBlock?: boolean)

Parameters

  • fragmentHtml: string
  • parent?: string optional
  • fixingBlock?: boolean optional

public writeChildrenHtml(writer: basicWriter, filter?: filter, filterRoot?: boolean)

Parameters

public writeHtml(writer: basicWriter, filter?: filter)

Parameters