If you have normal text in an AdvRichEditor and then retrieve it as HTML with AsString() from AdvRichEditorMiniHTMLIO, a element with a white background colour is added.
This is by design and to ensure that the background color is reflected in the HTML. If we wouldn't export it, users would remark it is missing.
But if i explicitly load a HTML with a <span> element:
this->AdvRichEditorMiniHTMLIO1->Load(L"<SPAN style=\"background-color:#FFFFFF;display:inline-block\">test</SPAN>", NULL, NULL);
then the <span> is ignored when calling AsString()
:
When i load my normal text afterwards:
this->AdvRichEditorMiniHTMLIO1->Load(L"Test", NULL, NULL);
I get the normal text as HTML: