[TIP] How to ensure plain pasted text
    Björnke von Gierke 
    bvg at mac.com
       
    Fri Oct 24 07:55:32 EDT 2008
    
    
  
I'm not sure this holds true for win or linux (or older rev versions  
then 2.8.1), but on mac os x, when there's styled text in the  
clipboard, both the html and the text values of the clipboarddata  
array hold their respective value.
Therefore this proved sufficient in one of my projects:
on commandKeyDown Vkey
   if Vkey = "v" then
     put the clipboardData["text"] into the selection
   end if
end commandKeyDown
-- 
official ChatRev page:
http://bjoernke.com/runrev/chatrev.php
Chat with other RunRev developers:
go stack URL "http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev"
    
    
More information about the use-livecode
mailing list