Helper class for making CONFIG.TextEditor.enrichers usage easier.

Constructors

Properties

Methods

Constructors

  • Parameters

    • id: string

      Unique identifier

    • pattern: RegExp

      Pattern for content matching.

    • enricher: Function

      Function for generating enriched content.

    • Optionalinteraction: { click?: Function; drag?: Function; match?: string[] } = {}

      Additional interaction options

      • Optionalclick?: Function

        Click handler

      • Optionaldrag?: Function

        Drag handler

      • Optionalmatch?: string[]

        CSS selectors for triggering click or drag handler

    Returns PF1TextEnricher

Properties

enricher: any
id: string
match: any
pattern: RegExp

Methods

  • Parameters

    • event: Event

      Click event

    • target: HTMLElement

      Target element

    Returns void

  • Parameters

    • event: Event

      Drag event

    • target: HTMLElement

      Target element

    Returns void