Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't copy paste colored text

Hi,

 

I have a script which generated HTML report (tables, paragraphs, texts) and when it is copy-pasted into Confluence, text color is lost (e.g. red, green, yellow).

Is there any workaround to fix it?

Sample of text:

<span style="color: red;">Current PHP version is deprecated so please schedule its upgrade with the manager.</span> 

1 answer

1 accepted

0 votes
Answer accepted
Bill Bailey Community Leader Oct 06, 2020

And is the span tag stripped, or is it still there?

Generally, expecting the formatting to be retained with pasting into Confluence will cause disappointment.  I often just clear all formatting, then fix manually.

yes, it is there

fortunately, managed to fix - the issue was about limited number of text colors in Confluence

instead of red, yellow, etc it is needed to use "Confluence" hex color codes, e.g.

<span style="color: #ff5630;">Current PHP version is deprecated so please schedule its upgrade with the manager.</span>

p.s. Confluence-suitable hex codes can be retrieved from code inspector of Google Console or special plugins like Color Picker - https://chrome.google.com/webstore/detail/colorpick-eyedropper/ohcpnigalekghcmgcdcenkpelffpdolg

Bill Bailey Community Leader Oct 07, 2020

Code inspector is your friend. You often have to see how a page is actually rendering to know how to fix CSS/formatting issues.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

146 views 0 5
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