Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RTEQuillInstance

Hierarchy

  • Quill
    • RTEQuillInstance

Index

Properties

clipboard: ClipboardStatic
keyboard: KeyboardStatic
root: HTMLDivElement

Internal API

scroll: Blot

Methods

  • addContainer(classNameOrDomNode: string | Node, refNode?: Node): any
  • Parameters

    • classNameOrDomNode: string | Node
    • Optional refNode: Node

    Returns any

  • blur(): void
  • Returns void

  • deleteText(index: number, length: number, source?: Sources): Delta
  • Parameters

    • index: number
    • length: number
    • Optional source: Sources

    Returns Delta

  • disable(): void
  • Returns void

  • enable(enabled?: boolean): void
  • Parameters

    • Optional enabled: boolean

    Returns void

  • focus(): void
  • Returns void

  • format(name: string, value: any, source?: Sources): Delta
  • Parameters

    • name: string
    • value: any
    • Optional source: Sources

    Returns Delta

  • formatLine(index: number, length: number, source?: Sources): Delta
  • formatLine(index: number, length: number, format: string, value: any, source?: Sources): Delta
  • formatLine(index: number, length: number, formats: StringMap, source?: Sources): Delta
  • Parameters

    • index: number
    • length: number
    • Optional source: Sources

    Returns Delta

  • Parameters

    • index: number
    • length: number
    • format: string
    • value: any
    • Optional source: Sources

    Returns Delta

  • Parameters

    • index: number
    • length: number
    • formats: StringMap
    • Optional source: Sources

    Returns Delta

  • formatText(index: number, length: number, source?: Sources): Delta
  • formatText(index: number, length: number, format: string, value: any, source?: Sources): Delta
  • formatText(index: number, length: number, formats: StringMap, source?: Sources): Delta
  • formatText(range: RangeStatic, format: string, value: any, source?: Sources): Delta
  • formatText(range: RangeStatic, formats: StringMap, source?: Sources): Delta
  • Parameters

    • index: number
    • length: number
    • Optional source: Sources

    Returns Delta

  • Parameters

    • index: number
    • length: number
    • format: string
    • value: any
    • Optional source: Sources

    Returns Delta

  • Parameters

    • index: number
    • length: number
    • formats: StringMap
    • Optional source: Sources

    Returns Delta

  • Parameters

    • range: RangeStatic
    • format: string
    • value: any
    • Optional source: Sources

    Returns Delta

  • Parameters

    • range: RangeStatic
    • formats: StringMap
    • Optional source: Sources

    Returns Delta

  • getBounds(index: number, length?: number): BoundsStatic
  • Parameters

    • index: number
    • Optional length: number

    Returns BoundsStatic

  • getContents(index?: number, length?: number): Delta
  • Parameters

    • Optional index: number
    • Optional length: number

    Returns Delta

  • getFormat(range?: RangeStatic): StringMap
  • getFormat(index: number, length?: number): StringMap
  • Parameters

    • Optional range: RangeStatic

    Returns StringMap

  • Parameters

    • index: number
    • Optional length: number

    Returns StringMap

  • getIndex(blot: any): number
  • Parameters

    • blot: any

    Returns number

  • getLeaf(index: number): any
  • Parameters

    • index: number

    Returns any

  • getLength(): number
  • Returns number

  • getLine(index: number): [any, number]
  • Parameters

    • index: number

    Returns [any, number]

  • getLines(index?: number, length?: number): any[]
  • getLines(range: RangeStatic): any[]
  • Parameters

    • Optional index: number
    • Optional length: number

    Returns any[]

  • Parameters

    • range: RangeStatic

    Returns any[]

  • getModule(name: string): any
  • Parameters

    • name: string

    Returns any

  • getSelection(focus: true): RangeStatic
  • getSelection(focus?: false): null | RangeStatic
  • Parameters

    • focus: true

    Returns RangeStatic

  • Parameters

    • Optional focus: false

    Returns null | RangeStatic

  • getText(index?: number, length?: number): string
  • Parameters

    • Optional index: number
    • Optional length: number

    Returns string

  • hasFocus(): boolean
  • Returns boolean

  • insertEmbed(index: number, type: string, value: any, source?: Sources): Delta
  • Parameters

    • index: number
    • type: string
    • value: any
    • Optional source: Sources

    Returns Delta

  • insertText(index: number, text: string, source?: Sources): Delta
  • insertText(index: number, text: string, format: string, value: any, source?: Sources): Delta
  • insertText(index: number, text: string, formats: StringMap, source?: Sources): Delta
  • Parameters

    • index: number
    • text: string
    • Optional source: Sources

    Returns Delta

  • Parameters

    • index: number
    • text: string
    • format: string
    • value: any
    • Optional source: Sources

    Returns Delta

  • Parameters

    • index: number
    • text: string
    • formats: StringMap
    • Optional source: Sources

    Returns Delta

  • isEnabled(): boolean
  • Returns boolean

  • off(eventName: "text-change", handler: TextChangeHandler): EventEmitter
  • off(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter
  • off(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter
  • Parameters

    • eventName: "text-change"
    • handler: TextChangeHandler

    Returns EventEmitter

  • Parameters

    • eventName: "selection-change"
    • handler: SelectionChangeHandler

    Returns EventEmitter

  • Parameters

    • eventName: "editor-change"
    • handler: EditorChangeHandler

    Returns EventEmitter

  • on(eventName: "text-change", handler: TextChangeHandler): EventEmitter
  • on(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter
  • on(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter
  • Parameters

    • eventName: "text-change"
    • handler: TextChangeHandler

    Returns EventEmitter

  • Parameters

    • eventName: "selection-change"
    • handler: SelectionChangeHandler

    Returns EventEmitter

  • Parameters

    • eventName: "editor-change"
    • handler: EditorChangeHandler

    Returns EventEmitter

  • once(eventName: "text-change", handler: TextChangeHandler): EventEmitter
  • once(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter
  • once(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter
  • Parameters

    • eventName: "text-change"
    • handler: TextChangeHandler

    Returns EventEmitter

  • Parameters

    • eventName: "selection-change"
    • handler: SelectionChangeHandler

    Returns EventEmitter

  • Parameters

    • eventName: "editor-change"
    • handler: EditorChangeHandler

    Returns EventEmitter

  • pasteHTML(index: number, html: string, source?: Sources): string
  • pasteHTML(html: string, source?: Sources): string
  • deprecated

    Remove in 2.0. Use clipboard.dangerouslyPasteHTML(index: number, html: string, source: Sources)

    Parameters

    • index: number
    • html: string
    • Optional source: Sources

    Returns string

  • deprecated

    Remove in 2.0. Use clipboard.dangerouslyPasteHTML(html: string, source: Sources): void;

    Parameters

    • html: string
    • Optional source: Sources

    Returns string

  • removeFormat(index: number, length: number, source?: Sources): Delta
  • Parameters

    • index: number
    • length: number
    • Optional source: Sources

    Returns Delta

  • setContents(delta: Delta, source?: Sources): Delta
  • Parameters

    • delta: Delta
    • Optional source: Sources

    Returns Delta

  • setSelection(index: number, length: number, source?: Sources): void
  • setSelection(range: RangeStatic, source?: Sources): void
  • Parameters

    • index: number
    • length: number
    • Optional source: Sources

    Returns void

  • Parameters

    • range: RangeStatic
    • Optional source: Sources

    Returns void

  • setText(text: string, source?: Sources): Delta
  • Parameters

    • text: string
    • Optional source: Sources

    Returns Delta

  • update(source?: Sources): void
  • Parameters

    • Optional source: Sources

    Returns void

  • updateContents(delta: Delta, source?: Sources): Delta
  • Parameters

    • delta: Delta
    • Optional source: Sources

    Returns Delta

Generated using TypeDoc