Interactive editor
Explore Hypertext Links and Bookmarks
Create links and bookmarks that connect document content to other locations.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Hypertext Links and Bookmarks
Create links and bookmarks that connect document content to other locations.
API used
TXTextControl.hypertextLinks
TXTextControl.documentLinks
TXTextControl.documentTargets
How it works
HypertextLinks.add creates an external URL, while DocumentLinks.add points to a named DocumentTarget in the same document. The documentLinkClicked event identifies the clicked field by its start position, resolves its live DocumentLink, and scrolls to the associated target.
Source files
See the implementation
The view, browser behavior, and controller are encapsulated in Demos/RichTextEditor/Editing/Bookmarks.