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

Hierarchy

  • PF1TextEnricher

Constructors

Properties

Methods

Constructors

  • Parameters

    • id: string

      Unique identifier

    • pattern: RegExp

      Pattern for content matching.

    • enricher: Function

      Function for generating enrichted content.

    • Optional interaction: {
          click: undefined | Function;
          drag: undefined | Function;
          match: undefined | string[];
      } = {}

      Additional interaction options

      • click: undefined | Function

        Click handler

      • drag: undefined | Function

        Drag handler

      • match: undefined | string[]

        CSS selectors for triggering click or drag handler

    Returns PF1TextEnricher

Properties

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

Methods

Generated using TypeDoc