Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why does Confluence use class="auto-cursor-target"

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2019

This is more of a curiosity.

I often have to edit the storage code for a page to clean up various items. I noticed awhile back that the following code would appear, I guess as a spacer around some objects?

 <p class="auto-cursor-target">
     <br/>
</p>

It seems the be filtered out when the page is displayed. Does anyone know why Confluence is inserting this code?

 

3 answers

3 votes
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2019

I believe it has something to do with collaborative editing as I have only seen that when Synchrony is turned on.

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2019

That could be. I know I can delete them, but they are reinserted. The only reason I care is it creates extra phantom space in the editor view that causes me to think it is empty p tags or something like this:

<p>
     <br/>
</p
0 votes
Christian Czaia [Decadis AG]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2020

You can manually edit the HTML, get rid of the auto-cursor-target and add a <span></span> instead. 

Directly save the page and don't touch or edit it again ant the <br> is gone. We use this for example for pages that we include in other pages.

This will not help everyone but at least it works :-)

PiginSpace
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 30, 2022

This was helpful because after replacing <p class="auto-cursor-target"> <br/></p> with <span></span>, I saw what auto-cursor-target was doing. It managed the space between macro elements, in my case the structured macro element for an ac=info element.

Actually, without auto-cursor-target I got a full paragraph height of white space after a note, so when I had consecutive notes it didn't look good. With auto-cursor-target the white space following the note was reduced, which looked much better. This works for all sorts of elements it seems, like checklists. 

I'd wondered why I sometimes had a lot and sometimes a little white space after these macro elements. Now I know that when I want the standard paragraph white space following, I'll check that I have <span></span> in the code, and when I want reduced white space following, I'll make sure that I have the auto-cursor-target paragraph. Great find! Thank you.

Like • 2 people like this
0 votes
Brian Packham
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 16, 2019

auto-cursor-target is like a virus. Once it gets into your page is messes up the formatting and it is very hard to get rid of

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events