How do you retain text formatting when pasting into Pages?

Hi


I often copy and paste text into and out of emails. But whenever I paste into Pages it removes all the emboldening or italicisation. Once pasted, the text is all in one style (the one selected when I hit paste).


Generally there is too much text for me to comb through and find each instance. Is there a setting in Pages that I can change to prevent this happening?


I'm using Pages version 5.2.2 on iOS 10.9.4.


Thanks.

MacBook Air, OS X Mavericks (10.9.4)

Posted on Dec 11, 2014 3:42 PM

Reply
11 replies

Nov 21, 2016 9:46 AM in response to jmonroe91

Select your block of text in Apple Mail, and then drag/drop it onto the Pages document. All attributes (e.g. bold, underline, text color, text highlight, etc.) are preserved in the Pages document.


Drag & Drop places fully attributed paragraph text for Pages v5.6.2 and v6.0.5. In Pages '09 v4.3, the following occurs:

  • El Capitan (10.11.6)

    Full attribute support placed in document as paragraph text

  • macOS Sierra (10.12.1)

    Same as El Capitan, but content is placed inside new text box

Dec 12, 2014 12:07 AM in response to VikingOSX

Thanks for checking this.


I wonder if it worked because you're using the Mail app, rather than Gmail in the browser, like I am. (It's not Gmail specific though - I tried copying from a Live/Hotmail account, too, and had the same problem.) Unfortunately it's inconvenient for me to use Mail.


Also, it's not just text from emails that loses formatting once pasted into Pages; any text I copy in reverts to the formatting specified in the document, even if it's a blank document with generic formatting settings. I can see why they do this - sometimes it's useful for uniformly copying in text from various websites - but I need to be able to turn it off.

Dec 12, 2014 5:46 AM in response to jmonroe91

As Viking pointed out, what you are seeing isn't normal and it isn't something that "they do."


Are you using any kind of clipboard enhancer that might modify the behavior for Copy and Paste?


Does the same thing happen when you paste into TextEdit?


Since your original post mentioned italics and bold, I would note that Pages will not fake those, if the font you are using doesn't really have them.

Dec 12, 2014 8:24 AM in response to jmonroe91

The reason this Rich Text functionality will work between Apple applications, is that Apple is adding raw, custom Cocoa RTF preamble that precedes the copy/pasted text. This preserves all RTF text attributes in both directions. Non-Apple applications do not use this custom Apple RTF preamble, and thus no RTF attribute preservation will occur during copy/paste operations.


I created a custom, strike-through solution for Apple Mail that gets the raw RTF from the clipboard, and inserts the RTF command for strike-through in the RTF stream, before pasting back to the clipboard, and then back into Mail. In the course of this development, I dumped the raw RTF code, and saw the Apple customization.

Dec 19, 2014 9:15 AM in response to VikingOSX

Thanks for your answers, both, and for Viking OSX's research.


I'm not using a clipboard enhancer and yes, this happens when I paste into TextEdit, too. I have tried to paste in from the Mail app and discovered that this turns the italics into standard text but retains any bold formatting.


I did notice one bizarre solution that may shed some more light, however: in my browser I clicked to forward the message and saved the draft in Gmail. I then accessed the drafted forward via the Mail app and copied the text into the document. This way the text retained all its bold and italic formatting.


Can you make any sense of this?

Dec 19, 2014 9:42 AM in response to jmonroe91

When you accessed that Gmail draft using Apple Mail, and copied the Gmail content to the clipboard, it was accompanied by custom Apple RTF encoding that preserved what you saw in the Gmail message. If in turn, you pasted this content into an Apple application, or a third-party application that has taken pains to use the Apple toolkits to decode this custom RTF (LibreOffice) — the content from that Gmail forwarded message will survive via the clipboard.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do you retain text formatting when pasting into Pages?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.