Vcl UIpack AdvRichEditor

Hi

Vcl UIpack 10.0.4.0, Delphi 10.2

I'm having problems with the tAdvRichEditor and InsertLineBreak.

No line breaks appears in my documents despite InsertLineBreak.

Regards,
Ole


I cannot see a problem here. This was tested on a default TAdvRichEditor on the form and we see the linebreak being inserted here:


begin
  AdvRichEditor1.InsertMultiLineText('hello world');
  AdvRichEditor1.SetCaret(cpEndDoc);
  AdvRichEditor1.InsertLineBreak;
  AdvRichEditor1.SetCaret(cpEndDoc);
  AdvRichEditor1.InsertMultiLineText('line 2');
end;

Thanks


I was not aware of the SetCaret(cpEndDoc)

I did not use it with the old Vcl Component pack.

After adding SetCaret it works fine.

Regards,
Ole