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?


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to