Difference between "html" and "htmlText" in clipboardData?
Bob Sneidar
bobsneidar at iotecdigital.com
Thu Feb 2 10:39:37 EST 2017
THAT is a revelation!
Bob S
On Feb 2, 2017, at 24:28 , Mark Waddingham via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:
The difference comes about when you use 'the fullClipboardData'.
The fullClipboardData gives you access both to the engine's synthesized data
formats and the original data that was placed on the clipboard.
In this context:
- rtfText: LiveCode's rtfText format
- htmlText: LiveCode's htmlText format
- styledText: LiveCode's (array-based) styledText format
- html: Only present if the data on the clipboard is actually HTML
- rtf: Only present if the data on the clipboard is actually RTF
This is explained in more detail in the fullClipboardData entry.
I'd generally recommend not using 'the clipboardData' for new apps, and using
'the fullClipboardData' instead. It allows you to put multiple distinct data
types on the clipboard, and does not use any 'legacy' rules to determine what
keys appear ('the clipboardData' only allows a single actual datatype, so uses
priority rules to determine which you see).
More information about the use-livecode
mailing list