Pasting formatted text

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
joc1945
Posts: 1
Joined: Wed Sep 23, 2009 10:41 am
Contact:

Pasting formatted text

Post by joc1945 » Wed Sep 23, 2009 11:03 am

I am running Revolution Studio 2.8.1 under MAC OSX.
I have found it difficult to move formatted text (with some bold and italics) from either Word or TextEdit to a field in Revolution without losing the formatting. Sometimes it works, but larger bits of text hardly ever do.
If I paste into (good old) HyperCard first and then copy that into Revolution it works fine.
Is there a way round this without using the HyperCard loophole? (One of my machines can no longer run HyperCard -- which is why I switched to Revolution!)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10335
Joined: Wed May 06, 2009 2:28 pm

Post by dunbarx » Mon Oct 19, 2009 4:08 pm

If you set and get the htmlText of a field (a property) instead of putting and getting the text of a field (which is a container), the style is preserved. All the tags come over with the text, which is why is has to be used, and thought of, as a property.

Post Reply