Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,059
Community Members
 
Community Events
165
Community Groups

How to change header text style (e.g. header) without changing all surrounding text?

Hi all,
I'm finding an issue where I change the text style on a piece of selected text (e.g. from 'normal text' to 'heading 2')  and it not only changes that text style of that selected piece of text, but also changes the text style of text I haven't selected both above and below this piece of selected text.

Steps to replicate:
1. Select string of text with cursor.
2. Select text style editor drop-down list.  Choose 'heading 2'.

Expected result: only the text I have selected changes to 'heading 2'.

Actual result:  the text I have selected changes to 'heading 2' AND text I haven't selected both above and below this selected text also changes to 'heading 2'.  The end result is that I have a whole paragraph above and above my heading also looking like 'heading 2'.

** any suggestions on how to fix this issue would be very much welcomed :) **

 

1 answer

0 votes
Brant Schroeder Community Leader Apr 20, 2022

@Craig Kelso This is very common issue in any online editor.  If you want to have a header it will need to have line breaks on either end in order to only change it.  

This will work.

This is a paragraph above the header.

Header

This is a paragraph below the header.

This will not work because it will apply the header style to the whole line and not the selected text.

This is a paragraph above the header. Header This is a paragraph below the header.

@Brant Schroeder  thanks so much, I've done this and it was worked.  cheers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

348 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you