HOw to get htmltext from the field to display in another field
Sannyasin Brahmanathaswami
brahma at hindu.org
Mon Sep 21 13:55:45 EDT 2020
I found it:
button "Check HTML"
on mouseUp
If "<p>" is in field "mainText" then -- htmltext is there
set the htmlText of field "mainText" to field "mainText"
else
put the htmltext of field "mainText" into field "mainText"
end if
end mouse
BUT!
<h1 color="159,59,0">Vedas<br />
A Random Selection<br />
of Sutras</h1>
gets turned around. It becomes
<p><b><font size="34">Vedas</font></b></p>
<p><b><font size="34">A Random Selection</font></b></p>
<p><b><font size="34">of Sutras</font></b></p>
?? where does the font size becomes "34" . Even with the font size of field increases, it stays at size="34"??
BR
J. Landman Gay wrote:
I think Swami wants a toggle, so it's likely the field won't ever be empty.
More information about the use-livecode
mailing list