RTF or TXT

Phil Davis revdev at pdslabs.net
Sat Oct 4 02:39:51 EDT 2014


Good advice!
Phil


On 10/3/14 11:05 PM, Kay C Lan wrote:
> 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.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis





More information about the use-livecode mailing list