Skip to main content
Create hyperlinks with automatic formatting and Word compatibility. Links automatically get underline styling and proper color, with full export support.

OOXML Structure

Use case

  • External links - Connect to websites and online resources
  • Document navigation - Create internal anchor links
  • Email links - Add mailto: links for contact information
  • References - Link to sources and citations
  • Non-inclusive - Links don’t expand when typing at edges, preventing accidental link extension

Options

Configure the extension behavior:
Array<string>
default:"['http','https']"
Allowed URL protocols
Object
HTML attributes for link elements
string
default:"null"
Default link target
string
default:"noopener noreferrer nofollow"
Default rel attribute
string
default:"null"
CSS class
string
default:"null"
Title attribute

Attributes

Node attributes that can be set and retrieved:
string
URL or anchor reference
TargetFrameOptions
default:"_blank"
Link target window
string
default:"noopener noreferrer nofollow"
Relationship attributes
string
Display text for the link
string
Anchor name for internal references
boolean
default:"true"
Whether to add to viewed hyperlinks list
string
Bookmark target name (ignored if rId and href specified)
string
Location in target hyperlink
string
Tooltip for the link

Commands

Create or update a link
Automatically adds underline formatting and trims whitespace from link boundaries
Example:
Parameters:
SetLinkOptions
required
Link configuration
Remove link and associated formatting
Also removes underline and text color
Example:
Toggle link on selection Example:
Parameters:
SetLinkOptions
required
Link configuration

Types

TargetFrameOptions

Target frame options

SetLinkOptions

Link options for setLink command

Source code