Clipboard option to not paste graphics doesn't allow pasting linked images

  • I wanted to use your clipboard option to prevent pasting of bitmaps and other graphics into a WPRichText because I only want linked images. I can paste a linked image in code, but I cannot copy and paste that same linked image into the same or another WPRichText when that option is set.

    Is there a way to allow a clipboard copy/paste of a linked image yet still prevent copy/paste of a non-linked image?

  • I tried to do this in my own Paste action (and turn it back on after):

    Code
    if not (
      ClipBoard.HasFormat(CF_METAFILEPICT) or
      ClipBoard.HasFormat(CF_ENHMETAFILE) or
      ClipBoard.HasFormat(CF_BITMAP) or
      ClipBoard.HasFormat(CF_PICTURE) ) then
    begin
      WPRichText1.ClipboardOptions := WPRichText1.ClipboardOptions - [wpcoDontPasteGraphics];
    end;


    But noticed that you also use the wpcoDontPasteGraphics as if it was a wpcoDontCopyGraphics as well, so I cannot copy linked images when that option is set. Can you add a wpcoDontPasteGraphics option to the clipboard options so it can bet set separately?