If I have a some words selected in the TAdvRichEditor and call the ClearSelection() method, the selection is cleared. That's right and that's what it's supposed to do. But the FromElement property is nulled aswell even if the caret appears to be over an element. I need to move the caret one step forward or backward to let the FromElement to "reflesh".
If you do ClearSelection(), there is no more selected text, hence, FromElement should not longer have a value. You can get the element where the caret is via AdvRichEditor.Caret.Element