'un-style' clipboard text...
J. Landman Gay
jacque at hyperactivesw.com
Tue Mar 2 10:19:02 CST 2004
On 3/2/04 2:12 AM, Chipp Walters wrote:
> Hi Jeanne, Jan -- me again :-)
> Turns out my RR2.1.2 was hosed. Reinstalled and now this works for me.
> on pasteIt
> put the selectedChunk into tChunk
> if tChunk is empty then exit to top
> if the clipboard is text then
> put the clipboardData["text"] into tTxt
> put "put tTxt into " & tChunk into tDo
> do tDo
> end if
> end pasteIt
> This will effectively paste styled text w/out the style into a fld,
> replacing the selected text.
This does too:
set the textstyle of the selection to "plain"
It is both shorter and retains the selection and the scroll. No need to
save and re-select.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode