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.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode