The following code describes my problem:
Code
procedure TForm1.Button1Click(Sender: TObject);
begin
WPRichText1.ProtectedProp := [];
WPRichText1.CurrAttr.AddStyle([afsProtected]);
WPRichText1.InputString(#13);
WPRichText1.InputString('Test');
WPRichText1.InputString(#13);
WPRichText1.CurrAttr.DeleteStyle([afsProtected]);
WPRichText1.ProtectedProp := [ppParProtected,ppProtected];
end;
It is possible to insert text before 'Test', and the text inserted gets protected so it can't be removed again. Isn't this somehow a bug.
Isn't it possible to make the CR protected too?