Stripping styling from the clipboard...

Brian Milby brian at milby7.com
Sat Jun 23 19:23:04 CEST 2018


https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript

Check out this handler. I can answer questions about it this evening if needed.
On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com>, wrote:
> 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


More information about the use-livecode mailing list