Constructors
constructor
- new PF1TextEnricher(
id: string,
pattern: RegExp,
enricher: Function,
interaction?: { click?: Function; drag?: Function; match?: string[] },
): PF1TextEnricher Parameters
- id: string
- pattern: RegExp
- enricher: Function
Optional
interaction: { click?: Function; drag?: Function; match?: string[] } = {}Optional
click?: Function
Optional
drag?: Function
Optional
match?: string[]
Properties
Methods
Abstract
click
- click(event: Event, target: HTMLElement): void
Parameters
- event: Event
- target: HTMLElement
Returns void
Abstract
drag
- drag(event: Event, target: HTMLElement): void
Parameters
- event: Event
- target: HTMLElement
Returns void
Helper class for making
CONFIG.TextEditor.enrichers
usage easier.