Options
All
  • Public
  • Public/Protected
  • All
Menu

An editor plugin that show a tooltip for existing link

Hierarchy

  • HyperLink

Implements

Index

Constructors

constructor

  • new HyperLink(getTooltipCallback?: (href: string, a: HTMLAnchorElement) => string, target?: string, onLinkClick?: (anchor: HTMLAnchorElement, mouseEvent: MouseEvent) => boolean | void): HyperLink
  • Create a new instance of HyperLink class

    Parameters

    • getTooltipCallback: (href: string, a: HTMLAnchorElement) => string = ...

      A callback function to get tooltip text for an existing hyperlink. Default value is to return the href itself. If null, there will be no tooltip text.

        • (href: string, a: HTMLAnchorElement): string
        • Parameters

          • href: string
          • a: HTMLAnchorElement

          Returns string

    • Optional target: string

      (Optional) Target window name for hyperlink. If null, will use "_blank"

    • Optional onLinkClick: (anchor: HTMLAnchorElement, mouseEvent: MouseEvent) => boolean | void

      (Optional) Open link callback (return false to use default behavior)

        • (anchor: HTMLAnchorElement, mouseEvent: MouseEvent): boolean | void
        • Parameters

          • anchor: HTMLAnchorElement
          • mouseEvent: MouseEvent

          Returns boolean | void

    Returns HyperLink

Methods

dispose

  • dispose(): void

getName

  • getName(): string

initialize

  • initialize(editor: IEditor): void

Protected onBlur

  • onBlur(e: FocusEvent): void

Protected onMouse

  • onMouse(e: MouseEvent): void

onPluginEvent

Generated using TypeDoc