Aleksi44 / wagtailsvg

Wagtail + SVG
https://pypi.org/project/wagtailsvg/
GNU General Public License v3.0
35 stars 24 forks source link

Use svg images inside a RichTextField #11

Open Ash-Crow opened 3 years ago

Ash-Crow commented 3 years ago

Hello,

Would it be possible to either add a "SVG" button or alter the behavior of the "Image button" in the RichTextField editor bar so that we can include SVG images inside a RichTextField the same way we can include a PNG or JPG ?

Aleksi44 commented 3 years ago

Hi @Ash-Crow

Currently, this is not possible with wagtailsvg.

Personally, I don't include images in the richtext editor. I prefer to use a StreamField.

If you want to go further on the subject, here are some useful links:

https://github.com/wagtail/wagtail/blob/main/wagtail/images/wagtail_hooks.py#L64 https://docs.wagtail.io/en/stable/advanced_topics/customisation/page_editing_interface.html