Anchors in the insert/Edit link button in TinyMCE

Jerry20
Tera Contributor

I have opened the anchor button on the HTML editor in TinyMCE to set an anchor point. However I do not have the option in the insert/edit link to use name the anchor so that a user can click on a word to jump to that point in the article. Does anyone know how to get the anchor to display in the insert/edit URL button when you click.

4 REPLIES 4

matthew_magee1
Giga Guru

Hi Jerry,



If I understand correctly, you want to create an anchor on a knowledge article.



You'll have to go into the source code, find the location where you want the anchor to be and enter:


<a name="anchor_name"></a>



The link to the anchor would be:


<a href="#anchor">Link to anchor</a>



Not sure if this what you were looking for-



Matthew


emir_e_eminovic
Giga Contributor


Anchors are supported in TinyMCE, but the plugin seems to be disabled by default. Ask your admin to enable it.



http://web.unc.edu/support/what-anchors-are-and-how-to-use-them-tinymce/


add this code using HTML editor


<a name="AnchorName "></a>




then in URL use


/kb_view.do?sysparm_article=KB0010009#AnchorName


Dominik Simunek
Tera Guru

Anchors can be enabled and used as described in this thread: Best Practices for Anchor Points?



But I understand you are asking about having all Anchors defined on the page listed as choice list in the Insert/Edit link window so that you can just select it and not remember it and type it again. I am not aware about a way how to make it working in ServiceNow for now.