Forcing 'paste' to paste plain text
Roger Eller
roger.e.eller at sealedair.com
Wed May 6 12:34:13 EDT 2015
This works. Put it in a button. Copy some styled text. Click the button.
Go anywhere and paste.
*on* mouseUp
*get* the clipboardData["text"]
*set* the clipboardData["text"] to it
*end* mouseUp
See, it even worked on my script (*StyledText above, *PlainText below)
on mouseUp
get the clipboardData["text"]
set the clipboardData["text"] to it
end mouseUp
Roger EllerGraphics Systems Analyst
803 North Maple StreetP: 864.967.1625Simpsonville, SC 29681C: 864.908.0337
SealedAir.com <http://www.sealedair.com/>Roger.E.Eller at SealedAir.com
<roger.e.eller at sealedair.com>
On Wed, May 6, 2015 at 12:00 PM, Graham Samuel <livfoss at mac.com> wrote:
> I want to make sure that any text pasted by my ‘paste’ menu gets pasted as
> plain (unstyled) text whether or not it is styled to start with. Probably a
> dumb question but I can’t quite see how to do this with ‘the
> clipboardData’. Can anyone suggest how this should be done?
>
> TIA
>
> Graham
> _______________________________________________
> 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
More information about the use-livecode
mailing list