Stripping styling from the clipboard...
    Paul Dupuis 
    paul at researchware.com
       
    Sat Jun 23 10:15:32 EDT 2018
    
    
  
Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.
My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)
*on*pasteKey *-- remove formatting*
*if* theclipboardData["text"] isnotempty*then*
*set*thetextofthetemplateFieldtoclipboardData["text"]
*set*theclipboardDatatoempty
*set*theclipboardData["text"] totheplaintextofthetemplateField
*end* *if*
*paste*
*end*pasteKey
Maybe I just haven't had enough Caffeine yet?
    
    
More information about the use-livecode
mailing list