Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Pasting colored text copied from browser into editor: newlines get lost

Confluence 6.5.1

From another web site I copied the following colored text (here printed in b/w only)

SELECT name, address, city
  FROM supplier
 WHERE name = 'Smith'
GO

having the following HTML when viewing the page source:

<pre><span style="color: #0000ff">SELECT</span> <span style="color: #0000ff">name</span>, address, city
  <span style="color: #0000ff">FROM</span> supplier
 <span style="color: #0000ff">WHERE</span> <span style="color: #0000ff">name</span> = <span style="color: #808000">&apos;Smith&apos;</span>
GO
</span></pre>

I'm playing with two browsers: Firefox 57.0.2 and IE 11.0.9600.18816 + 11.0.47.

When editing the Confluence page and copying the said text then SOMETIMES I get a correct paste: both colors and newlines. Most of the times though everything is pasted onto a single line (colors okay).

Whenever I have the chance to get a "correct" paste then I can close the editor and edit again, the pasted text still shows okay. However, as soon as I SAVE the text then the newlines are removed. That behavior is browser independent.

If I edit the same page in both editors, whenever I SAVE the page in one of the browsers then Synchrony immediately "adjusts" the text in the other browser by removing the newlines and flattening out the text over a single line.

A not-so-ideal workaround for now is to use OneNote as a copy/paste hub. Copying to OneNote first, then copying the OneNote text and pasting to Confluence seems to hold the newlines when saving the page. The first paste after opening the page for editing is always in b/w. I have to undo and repeat the paste, even multiple times (once or twice in IE, but often up to ten times in FF) to get a good colored paste! God only knows what's happening inside Confluence in the meantime.

Looks as if there is something not so stable in the Confluence editor newline and color processing...

1 answer

May be, for your particular case, you shall consider using a built-in "code" macro?

For code snippets it is a very good option, in my option, and it does the syntax highlighting as well

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

All you wanted to know about customer support KPIs

When working in customer support, it’s crucial to calculate, analyze and monitor specific numbers, called KPIs (Key Performance Indicators). They go hand-in-hand with customer satisfaction, problem d...

107 views 1 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