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
setLink
Create or update a link
Automatically adds underline formatting and trims whitespace from link boundaries
SetLinkOptions
required
Link configuration
unsetLink
Remove link and associated formatting
Also removes underline and text color
toggleLink
Toggle link on selection
Example:
SetLinkOptions
required
Link configuration

