Find the image then remove it from the wpRichText

  • Hi,

    I have some text and in the body part of the wpRichText.
    I need a function that scans the body of the wprichtext from the position 0, and it detects the images then remove the images from the entire text.

    Is it possible to make it ? and how to implemente that function ?

    I'm using then version: wpTools V4.22a and Delphi 7.

    Please some helps are appreciate. Thanks.

    Jen.

    • Offizieller Beitrag

    Hi,

    Using TextObjects.GetAtCP you can check for object atr cursor position. Using InputStreinbg(#127) you can delete.

    CPMoveNext will move to next character until the end, then it returns false.

    Julian