WPCubed Product Support

Detecting an Image?

How do I cycle thru the objects of a TWPRichText and detect if it contains a image?

Thanks in advance.

#1 ♥ 0
3.1k Views 2 users read 1 min
support

You can work with a list of objects:

var list : TWPTextObjList;
begin
   list := WPRichText1.CodeListTags(wpobjImage);
   try
     for I := 0 to list.Count-1 do
       list[i].ObjRef ...
   finally
     list.Free;
   end;
end;
#2 ♥ 0
This category is archived. No new posts are possible.