Inserting an image at the end of protected text becomes protected

General TRichView support forum. Please post your questions here
Post Reply
whisper1980
Posts: 118
Joined: Sun May 25, 2025 6:41 pm

Inserting an image at the end of protected text becomes protected

Post by whisper1980 »

On Android, maybe iOS too, if my caret is at the end of protected text and I use the virtual kbd to enter text, the text is not protected which is good. However, if I instead insert an image, the image becomes protected and I can't delete it. What might I be missing or how to avoid?

Code: Select all

      rveTopicComment.TopLevelEditor.BeginUndoGroup(rvutInsert);
      rveTopicComment.TopLevelEditor.SetUndoGroupMode(true);
      try
        if rveTopicComment.InsertPicture(vImagePath,
          RVGraphicHandler.LoadFromStream(pReportImage.Image),
          TRVVAlign.rvvaBaseline, pDisplayWidth, pDisplayHeight
          ) then
        begin
          rveTopicComment.SetCurrentItemExtraStrProperty(
            rvespImageFileName, vImagePath, true
            );
        end;
      finally
        rveTopicComment.TopLevelEditor.SetUndoGroupMode(false);
      end;
Thanks,
Eric
Post Reply