How to use anchors in CKEditor

Issue

  • I need to make use of anchors in my content

Environment

  • Liferay 7,3, 7.4, Quarterly Releases

Resolution

  • To be able to use anchors in your content, you'll need to follow these steps:

    • Add a Rich Text field in your structure.
    • Click on the Link option and choose 'Link to anchor in the text' as Link Type.
    • Fill in the Display Text and click Ok:



    • In the editor, now click on the <> Source Option and edit your anchor code to add the reference to an existing element , for example:
      <p><a name="my_anchor">My anchor</a></p>


Additional Information

 

 

 

 

 

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