formattedText to clipboard

Mark Swindell mdswindell at cruzio.com
Sat Nov 29 13:25:08 EST 2008


Via a button, how can I capture the formatted text of a field and put  
it into the clipboard so that it can then be pasted with formatting  
intact into a word processor??

"Set the clipboardData to field x", puts the text but without  
formatting.

"Set the clipboardData to the htmlText of field x" puts the text plus  
all the tags.

"Set the clipboardData to the rtfText of field x" puts the text plus  
all the tags.

But if I manually select within the field, copy it, and then paste it  
directly into Pages or Word, I get the formatted text (with some  
glitches, but essentially ok for my purposes).

Thanks
Mark



More information about the use-livecode mailing list