I know the new TextLayoutFramework will take a little time to get used
to and losing htmlText kinda sucks, but how can I pass html elements to
a textarea and get them to render correctly? In this case, I control the
elements <b>, <i>, <font> being pushed to the textarea.
I have a textarea (ta) that I want to push html elements to. I googled
around and found the TextFlowUtil and saw examples of people using it.
However when I attempt it I get 'Error: Unknown element font'.
Here is my text 'creator' (in one function):
/mess = "<font color='#" + textColor + "'>" +
UserDataModel.getInstance().person.getString('nickname')+ " says: " +
mss + "</font>";
/
Here is how I am attempting to get it into the textarea (ta) (in a
different function):
/ta.textFlow = TextFlowUtil.importFromString(e.getMessage() + "\n");/
Basically the 'mess' gets put into a message, sent to the server,
returned to a different function and the textArea gets updated.
I also have the same problem with <b> where the error is something like
'Unknown Element b'. Thanks!