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:Allowed URL protocols
HTML attributes for link elements
Default link target
Default rel attribute
CSS class
Title attribute
Attributes
Node attributes that can be set and retrieved:URL or anchor reference
Link target window
Relationship attributes
Display text for the link
Anchor name for internal references
Whether to add to viewed hyperlinks list
Bookmark target name (ignored if rId and href specified)
Location in target hyperlink
Tooltip for the link
Commands
setLink
Create or update a link
Automatically adds underline formatting and trims whitespace from link boundaries
Link configuration
unsetLink
Remove link and associated formatting
Also removes underline and text color
toggleLink
Toggle link on selection
Example:
Link configuration