jbv:
> how can I know for certain that the selection is in italic ?
> I tried : char 5 to 7 of the HTMLtext of field x
> but it returns : "bc "
Watch the word order in syntax! Different results.
Here's how it works:
put the HTMLtext of char 5 to 7 of field x
-- or --
put the HTMLtext of the sel
Hi list,
I have a field with a HTMLtext as follows :
abc def xyz
the content of the field displays like that :
abc def xyz
with "def" in italic.
Now I select "def" ; the selectedChunk returns
char 5 to 7 of field x
Question : how can I know for certain that the
selection is in italic ?
You would normally do something like
put the selectedchunk
-> char 5 to 7 of field 1
put the textstyle of the selectedchunk
--> italic
if the specified chunk has mixed textstyle, you get an empty result
put the textstyle of char 3 to 5 of field 1
-->.