Submit a request
Submit a request

Creating and Linking to Text Anchors

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

<a id="#footnote1">1.</a>

Example using Name

<a name="footnote1">1.</a>

Example using both ID and Name

<a id=#footnote1" name="footnote1">1.</a>

Repeat this step for every anchor you want to add. 

Screen_Shot_2019-02-04_at_14.08.30.png

Figure 1: Access the HTML Source using the Source button in the rich text toolbar

Screen_Shot_2019-02-04_at_14.07.47.png

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.

Screen_Shot_2019-02-04_at_14.02.45.png

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

Screen_Shot_2019-02-04_at_14.11.40.png

Figure 4: The hyperlink button in the rich text toolbar

Screen_Shot_2019-02-04_at_14.13.18.png

Figure 5: After selecting 'Link to anchor in the text' from the drop down menu, select the anchor name or ID.

Was this article helpful?
0 out of 0 found this helpful

Did you arrive here by accident? If so, learn more about Learnosity by clicking here.