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
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
>
>
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
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
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
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
___