RichEditor : Convert to plain text

Hi

How to convert an Html (or richedit) version to plain text in the same advRichEditor ?

I use a checkbox in order to indicate if I can use html enhancement or just use the plain text.

When the text use already html format, and I switch to plain text format, how to delete all enhancement (bold, italic, etc ) already present.

I try to use stream property without success :(

regards
olivier

You can use:

AdvRichEditor.ContentAsPlainText: string;
Hi

In order to retrieve the linebreak, I do this :

                Chaine := vTexte.ContentAsPlainText;
                liste.Text := Chaine;
                vTexte.Clear;
                FOR i := 0 TO liste.Count - 1 DO
                BEGIN
                    IF i > 0 THEN
                        vTexte.AddLineBreak;
                    vTexte.AddText(liste.Strings);
                END; //  Fin de FOR
regards
olivier