I would like to extract linktext into field and put this list of group words into another field.
my code work but the result is that alls words linked are extracted.
Code: Select all
on mouseUp
repeat with i = 1 to the num of words of fld "text1"
if the textStyle of word i of fld "text1" is "link" then
put the htmltext of word i of fld "text1" after tlistHtml
end if
end repeat
put tlistHtml into fld "fldlinkword"
set the htmlText of fld "fldlinkword" to tlisthtml
end mouseUp
the result in my field is :
le
domaine
du
fan
and my hope is
le domaine du fan
Thank you for your help
Eric