Open rafagarciac opened 3 years ago
Hi @rafagarciac
Do you have javascript errors in the console? Can you test your project with this version:
pip install wagtailsvg==0.0.11
It is possible that the problem is related to #7 for wagtail 2.13 support.
@Aleksi44
I don't have any JS errors in the console.
Why would I change the wagtailsvg version to 0.0.11
since there isn't any change related to SvgChooserBlock
or AdminSvgChooser
which is the error where I'm getting from... 🤔 ??
The problem related to #7 is for wagtail 2.13
, so I don't think is related because my Wagtail version is 2.10.2
.
Thanks for your quickly reply !
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 wagtailsvg==0.0.11 uses the implementation of older versions of wagtail
I changed the wagtailsvg version from 0.0.14
to 0.0.11
and still does not work.
It does not include usefull change to SvgChooserBlock
or AdminSvgChooser
from the version that I had. (0.0.14
).
Do you think is it something related about wagtail version itself 2.10.2
?
@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: wagtail-react-streamfield
.
https://github.com/wagtail/wagtail-react-streamfield and isn't related with wagtailsvg
itself. 👌🏼
For the other hand, I've updated the WagtailSVG Test Project with the package wagtail-react-streamfield
, in order to check what is causing this problem and try to fix it as soon as possible.
Finally, I found this related issue https://github.com/wagtail/wagtail-react-streamfield/issues/26 on wagtail-react-streamfield
package.
Thanks again.
I'm glad you found the reason :) I'll leave the ticket open if it helps anyone.
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 previewThank for your support. Cheers !