Re: Forcing 'paste' to paste plain text

2015-05-07 Thread Graham Samuel
Thanks to all who replied. I love Roger’s latest - it appears then that even if the clipboard contains styled text, that one command will lose the styling. That’s really what I wanted. Richmond’s solution only works if one programs the actual ‘paste’ - knowing what one is pasting into - but as I

Re: Forcing 'paste' to paste plain text

2015-05-06 Thread Roger Eller
Even better, you can paste into any field, whether inside or outside of LiveCode: on mouseUp set the clipboardData["text"] to the clipboardData["text"] end mouseUp On Wed, May 6, 2015 at 12:38 PM, Peter Brigham wrote: > Try this: >put the clipboarddata["text"] into the selection > >

Re: Forcing 'paste' to paste plain text

2015-05-06 Thread Peter Brigham
Try this: put the clipboarddata["text"] into the selection -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Wed, May 6, 2015 at 12:00 PM, Graham Samuel wrote: > I want to make sure that any text pasted by my ‘paste’ menu gets pasted as > plain (unstyled) text

Re: Forcing 'paste' to paste plain text

2015-05-06 Thread Roger Eller
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 t

Re: Forcing 'paste' to paste plain text

2015-05-06 Thread Richmond
On 06/05/15 19:00, Graham Samuel 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 thi

Forcing 'paste' to paste plain text

2015-05-06 Thread Graham Samuel
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 ___