Given a rich text editor, I want to save the "rich" text to a database, and load it later.
So how can I get
and set
the rich text?
I looked at the API and there is a property called text
which is only PLAIN text, not what I need. There is another property called textSnapshot
which sounds like maybe thats what I need to use, but its READ-ONLY so I can't set it?
Is there a way to do this?
Thanks!
UPDATE
It turns out I am only going to save it from a RichTextEditor
, and I need to set it has htmlText
on a Text
control,
so is there a way to get the rich text and convert it to hmtlText?