It is possible to link to anchors in a piece of text using the hyperlink button in the rich text toolbar.
First of all, you will need to create the anchors manually in the HTML source.
Inserting the Anchors
- Click inside the text field in which you want to add the anchors
- Click on the Source button in the rich text toolbar
- Enter either an element ID, or a Name (or both) around the text you want to apply the anchor to
Example using ID
Example using Name
Example using both ID and Name
<a id=#footnote1" name="footnote1">1.</a>
Repeat this step for every anchor you want to add.
Figure 1: Access the HTML Source using the Source button in the rich text toolbar
Figure 2: The HTML Source field
When an anchor has been applied to a piece of text in the Question Editor, a red flag symbol will appear to the left of the anchor text, and a blue dotted outline will appear around the anchor text.
Figure 3: Flag and outline on anchor text
Linking to the Anchors
To link to an anchor:
- Find and highlight the text that you want to use as a link to the anchor
- Click on the hyperlink symbol in the rich text toolbar
- In the Link Type drop down menu, select Link to Anchor in the Text
- There are two drop down menus available, one to select the anchor by the name you have given it, or one to select the anchor by the ID you have given it. If you have given your anchor both a Name and an ID, you can select from either drop down menu and it will work.
- Click OK
Figure 4: The hyperlink button in the rich text toolbar
Figure 5: After selecting 'Link to anchor in the text' from the drop down menu, select the anchor name or ID.