-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SvgChooserBlock doesn't show up preview svg image StreamField. #8
Comments
Hi @rafagarciac Do you have javascript errors in the console?
It is possible that the problem is related to #7 for wagtail 2.13 support. |
@Aleksi44 The problem related to #7 is for wagtail |
The SVG preview in Streamfield is handled differently in wagtail 2.13 than in previous versions. wagtailsvg==0.0.14 uses the wagtail 2.13 implementation |
I changed the wagtailsvg version from Do you think is it something related about wagtail version itself @Aleksi44 Any idea ? 🤔 |
I had the same problem when wagtail released version 2.13, you can see it here. Some hints that might help you :
If you still can't find it, I can help you if you create a public repository to reproduce the bug. |
Hi @Aleksi44, I've already created a WagtailSVG Test Project, to run this project in isolation and it works perfectly ! I also I've detected that the bug I'm getting in the is related with the following wagtail package: For the other hand, I've updated the WagtailSVG Test Project with the package Finally, I found this related issue wagtail-deprecated/wagtail-react-streamfield#26 on Thanks again. |
I'm glad you found the reason :) |
Hi @Aleksi44 !! I'm trying to implement this awesome package to the application with the following versions:
Because of wagtail version (
2.10.2
), I'm using a fork built-in project of this repository, in order to fix the migrations problems, change0059_apply_collection_ordering
to0052_pagelogentry
in0001_initial.py
migration file.Everything works perfect until, I try to use
SvgChooserBlock
.After integrate and build up the custom fork of
wagtailsvg
with version0.0.14
, I added the followingStreamField
to my custom page like that:Now, the problems comes when I cannot previsualize the image inside block on
StreamFieldPanel
, it looks like this:Link image preview
Thank for your support.
Cheers !
The text was updated successfully, but these errors were encountered: