Does anyone know if it is possible to update a piece of text in an textbox where html is enabled?
For example if the text inside an html textfield is:
Line 1 Lorem ipsem, <b>Lorem</b> ipsem,
Line 2 Lorem ipsem, Lorem ipsem,
Line 3 Lorem ipsem, Lorem ipsem.
And if i replace the text on line 2 and make it bold without effecting line 1. Is that possible?
You can easily accomplish it by rewriting all the lines with the revised version of line 2 being used.
But the moment i rewrite the lines the first line will be reconized as html text and will result into bold.
So i guess you can't update a few lines in a textfield without effecting the other lines.
Is that true?
no, that's not true.
the first line of text (and the rest) should already be recognized as html text once they're assigned to a html-enabled textfield and alot of other code will be added to constitute the htmlText property of your textfield.
however, the string you posted above will remain unchanged. just add your bold tags to the 2nd line and reassign to the htmlText property of the textfield.