[TIP] How to ensure plain pasted text

Thomas McGrath III 3mcgrath at comcast.net
Fri Oct 24 08:49:21 EDT 2008


Thanks Hugh,

This was very informative. I have not used the templateField before  
since I did not think I had a need for it but after this great  
explanation I think I might find some uses here in the near future.

Thanks again,

Tom McGrath

On Oct 24, 2008, at 5:24 AM, Hugh Senior wrote:

> A little something to keep in your Scripter's Scrapbook for when you  
> need
> it... How do we ensure plain text when we copy and paste from another
> program?
>
> Pasting text from a Browser or an email often results in an unwanted  
> text
> format that doesn't match the field's default style. This is  
> annoying when
> all we want is the data not the style, such as a database field.
>
> The simplest way is to change the clipboardData which is self- 
> managing...



Thomas J McGrath III
3mcgrath at comcast.net

Lazy River Software
http://www.lazyriversoftware.com







More information about the use-livecode mailing list