Adds a hyperlink to the specified parent that invokes action on the specified editor.

  • Parameters

    • parent: HTMLElement

      DOM node to contain the new link.

    • text: string

      String that is used as the link label.

    • editor: Editor

      that will execute the action.

    • action: string

      String that defines the name of the action to be executed.

    • pad: number = 0

      Optional left-padding for the link. Default is 0.

    Returns HTMLSpanElement