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