Allow embedded Images in HTMpurifier

83 Views Asked by At

I have wysiwyg editor and filtered using htmlpurifier, Id like to allow the users to directly drop or paste images in the editor and the image is saved as textformat, but the htmlpurifier filter this out, how to configure htmlpurifier to allow embedded images?

1

There are 1 best solutions below

0
On

I don't know how the editor is doing the embedding, but if it is embedding them as data URLs, you can enable it modifying %URI.AllowedSchemes to include 'data'.