<!-- External link --> <w:hyperlink r:id="rId1"> <w:r> <w:rPr><w:u/></w:rPr> <w:t>Link text</w:t> </w:r> </w:hyperlink> <!-- Internal anchor --> <w:hyperlink w:anchor="bookmark1"> <w:r> <w:t>Jump to section</w:t> </w:r> </w:hyperlink>
setLink
// Link selected text setLink({ href: 'https://example.com' }) // Link with custom text setLink({ href: 'https://example.com', text: 'Visit Example' })
function
unsetLink
unsetLink()
toggleLink
// Add link toggleLink({ href: 'https://example.com' }) // Remove link toggleLink()
LinkAttributes
Show Properties
Was this page helpful?