create anchor new editor
Asked by ???????_??????:

How do I create an anchor within a single page in a new editor? I only see that you can create a link to an external resource


Answers:
author: Ste Wright
body: Hi [@???????_??????](/t5/user/viewprofilepage/user-id/3798509)

Anchors don't work the same way in the new editor - the Anchor macro no longer functions, you can only link to a header within a page - to do this..

In view mode, hover over a header and a link icon will appear to the left-hand side - copy it from here. Then you can use it to link from one part of the page to another. You can also link to other pages, issues in Jira, etc.

To see what macros are no longer available in the new editor, see [this page](https://confluence.atlassian.com/confcloud/macros-724765157.html)

Ste

comments: author: kirthyiyer
body: Thank you! I was also looking for this and this solution works. :-)


author: Rob Gilliam
body: So if I have some content on a page (e.g. a "latest version" section) which might be superseded by future updates, but I want existing pages to keep working, how do I do that?

Currently I put a "latestversion" anchor next to the header describing the latest version. All other pages just need to link to that anchor.

The header-specific anchor will (obviously) change as new version headers are added.


author: Tomas Sleurs
body: So in the end, is there a way to link to a specific place in a different page or even the same page without using an anchor or not?

The solution that was given by you doesn't work. I gave a place in my document a certain heading but I still can't link to it and don't get any option to do so.  

If this doesn't work I have to say this is one of the most basic functionalities I'd expect and it is available in Onenote, Evernote, Word, Google Docs, etc...

Please create a macro that allows users to create custom links to anywhere.


author: Martin H. R?st
body: [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470) I wouldn't call this easy to do. It requires you have to TWO tabs open, and hopefully the user has TWO screens, or else it requires the user to swap between tabs. In my case I just want to link from one section of the document to a headline within the same document. So I need to open one tab with the document in view mode, and one tab with the same document in edit mode. If it only was possible to get hold of the link in edit mode, this would have been a lot more simplified.

I have a document with a table of content widget, but this is not avaiable in edit mode, and it's not easy to guess what the anchor name is.


author: Lucas Saba
body: Anchoring should be available to any specific piece on the document.

For requirement writing, it would be much easier for users to be able to click on a specific requirement number that they're looking for versus having to scroll through tons of requirements to find the use case they want to see.

Also agree that this isn't an "easy" solution as it truly requires you to go back and forth between two tabs, when you have a ton of headers it isn't ideal. It should also be documented somewhere more visible as most things that appear in help docs are related to the macro that only exists in the old editor... took me quite a while to get to this answer and it's definitely frustrating.


author: Ste Wright
body: Hi [@Tomas Sleurs](/t5/user/viewprofilepage/user-id/4143043)

Can you describe your issue in more detail, if it remains?  

You should be able to link to a header as described, although there are some limitations when the header is inside a table, a panel, etc. See [CONFCLOUD-69198](https://jira.atlassian.com/browse/CONFCLOUD-69198) for more information!

------------------

Hi [@Martin H. R?st](/t5/user/viewprofilepage/user-id/23905)

There are improvements being made to the anchors, such as through CONFCLOUD-69198 (see above).

You could also vote/comment on this suggestion which is more specific to your needs - [CONFCLOUD-68447](https://jira.atlassian.com/browse/CONFCLOUD-68447)

------------------

Hi [@Lucas Saba](/t5/user/viewprofilepage/user-id/4168906)

There are a few other options also:

* **Table of Contents:**Creates a table of contents at the top of the page, based on headings on the page. This would be in place of anchors on the same page.
* **Pages Properties / Page Properties Report:**Together these could create a summary of various pages in one table, if requirements are on multiple pages.

-----------------

In all instances, I believe the legacy editor remains available also - see [this answer](https://community.atlassian.com/t5/Confluence-Cloud-questions/Re-Re-create-anchor-new-editor/qaq-p/1450074/comment-id/2923#M2923) here - as a further alternative, whilst the existing functionality is enhanced :)  

Ste


author: kgrossman
body: This is an incredibly frustrating solution for an incredibly frustrating new editor. I am linking from our user website where they type in a request for a specific resource and the link leads them to our Knowledge Base Atlassian page. We want to anchor the link to a specific area of the page and I am unable to see the hierarchy of the original page, which was not created by me, to determine if I have to turn each box into a header. This is incredibly time consuming, frustrating and I'd really like to go back to the old editor where I can just have an anchor. Clearly there must be an easier solution? I also do NOT see any link add options when I hover over a header.

comments: author: Ste Wright
body: Hi [@kgrossman](/t5/user/viewprofilepage/user-id/3743443)

There's nothing stopping you from continuing to use the legacy editor if you prefer. [This article](https://community.atlassian.com/t5/Confluence-Cloud-articles/Change-to-your-content-is-in-your-hands/ba-p/1324476) confirms that the legacy editor is still available.

It's possible to create a legacy page as one of the templates when creating a new page. If it's not there, you can try reaching out to Atlassian Support to see if they can activate it for you.

When you mention hierarchy of the original page, what are you referring to? Was this page converted from the legacy editor to the new experience? Let me know some more specifics around what steps there are here and I'll see if I can help :)

Ste


author: kathryn_colombo
body: Totally agree with kgrossman, that just doesn't make sense. google docs should not be better than confluence, and yet here we are. I know i'm being incredibly salty right now, but it took me an HOUR to find the answer to this question, and the purpose of this platform is to make cataloging and recording information easier. It's hilarious that it's this hard to find a simple--though incredibly frustrating and inconvenient--answer.


author: Susanne Ertle
body: Cloud is getting less and less usable. I might be able to work around using headings in some cases, but you have to leave the Editor, copy the link in view mode and then go back into the Editor to actually create the link????? Anything but user friendly.


author: Antonio Garc?a
body: I think it really sucks that the new editor comes at the price of killing functionality that previously existed. It's about adding not substracting. Now we need to look for "workarounds" for things that were easily accessible in the past.


author: Marian Vidra
body: I always found Anchor macros very handy and don't understand what was the reason to remove them from the new editor. If you come up with something new, it's good to keep good old things they worked previously. Keep that in mind!


author: Penguin
body: Hi [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470)

I am trying to create a simple link from the bottom of a page to the top using a predefined anchor like #top or something as the link.

The closest I have got to making this work is entering the entire hyperlink of the current page (which of course we are already on anyway) and then adding the #anchor of the first heading on the page, but this is not the top of the page.

Is there a Secret Squirrel hyperlink that I can add to some text that just goes straight to the top of the current page?

comments: author: Ste Wright
body: Hi [@Penguin](/t5/user/viewprofilepage/user-id/2461395)

Not that I know of - Confluence Cloud now just has anchors within the titles rather than from any point on the page.

If linking to the page itself (rather than an anchored title) isn't sufficient - have you considered:

1. Create a new title called "Top of Page" at the top of the page
2. Make the title H6 - to make it as small as possible
3. Make the title white (or whatever colour your page background is) so it is not visible
4. Save the page, copy the hyperlink for the new title and re-edit
5. Add your link at the bottom of the page back to the new invisible title at the top

\^ It's a work-around and does mean your main text sits slightly below the top, but it will allow you to have the anchor without a visible extra title :)

Ste


author: Penguin
body: Thank you for pointing in the right direction. I did it slightly differently in the end but used your idea.

My page has a landing page and then about 20 sub pages (chapters) and the first line on every chapter page is a hyperlink back to the landing page, so I simply made this line Heading 5 instead of normal text, and then I limited the table of contents on each chapter page to only levels 1-4.


Tags: confluence-cloud