[Example] DeleteBlankLines, RemoveParagraphBreaks, etc.

Demos, code samples. Only questions related to the existing topics are allowed here.
Sergey Tkachenko
Site Admin
Posts: 13398
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: [Example] DeleteBlankLines, RemoveParagraphBreaks, etc.

Post by Sergey Tkachenko » Tue Jun 20, 2017 7:00 pm

Use CanUpdate:

Code: Select all

  SRichViewEdit1.CanUpdate := False;
  DeleteBlankLines(SRichViewEdit1.ActiveEditor.RVData);
  SRichViewEdit1.ActiveEditor.ClearUndo;
  SRichViewEdit1.Format;
  SRichViewEdit1.CanUpdate := True;

filo
Posts: 22
Joined: Wed Apr 12, 2017 12:28 pm

Re: [Example] DeleteBlankLines, RemoveParagraphBreaks, etc.

Post by filo » Tue Jun 20, 2017 7:52 pm

Solved, thank you!

Post Reply