RTF or TXT

Kay C Lan lan.kc.macmail at gmail.com
Sat Oct 4 02:05:55 EDT 2014


On Sat, Oct 4, 2014 at 12:44 PM, Phil Davis <revdev at pdslabs.net> wrote:
>
> on mouseUp
>     set the rtfText of fld 1 to the clipboardData["RTF"]
> end mouseUp
>
That looks like a simple answer but there are two entries in the
Dictionary under RTFText that might steer you in an ever so slightly
different direction:

Note: Unfortunately, OpenOffice does not have particularly good rtf
import / export capabilities (it doesn't even round-trip correctly
through itself!) and thus copying / pasting of lists between LiveCode
and OpenOffice will not work reliably or correctly.

Important! Because the RTF standard does not include the box,
threeDbox, and link styles supported by LiveCode, the RTFText property
does not necessarily include all information necessary to reproduce
the style information in a chunk. To export and re-import field
information without losing any style information, use the
htmlTextproperty instead.




More information about the use-livecode mailing list