-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Relative image urls in CSS replaced with absolute urls by build script #675
Comments
Thanks for reporting. The relative urls are there in the source code, but are apparently replaced with absolute urls by the build script which concatenates the CSS ( |
这个问题啥时候修复呀? |
Ah, you're right @jdfdcc , thanks for the feedback. Can you please use English next time? |
@josdejong I'm still seeing this bug, am I doing something wrong? |
ow, I think I accidentally closed this issue. Looking at my reply on Nov 12 I was thinking that @jdfdcc reported that the issue was fixed or so, but if I translate his comment now it just asks "When is this problem fixed?". I don't get it 😕 Anyway, seems the issue is not fixed yet. Anyone able to look into this? Help would be very welcome. |
Anyone is fixing it? Still happening :( |
It's not yet fixed. Help would be welcome. |
Hi I think we can change it like this.
configured the webpack config also as following using this guide. But no success.
@josdejong Hi Jos, I almost wasted a day on this problem. Shall we fix this soon ?. Hope what I am addressing is correct. |
@NisugaJ sorry to hear that. Yes it would be great to solve as soon as possible of course. I will not have time for it myself though on short term, help would be very welcome. I have to say I haven't encountered this issue myself (using JSONEditor in React applications, built using Webpack), I'm not sure how to reproduce the issue in the first place. I suppose it's a matter of configuring webpack and/or the SCSS processor to either embed the SVG or change the url to the place where the image is hosted. In my own React projects, Webpack automatically copies the image to It maybe helpful too know that it is possible to change the url from where JSONEditor loads the SVG by overriding the SCSS variables |
@josdejong thanks for the reply. Excuse me, forgot to mention that I actually have a React based
This probably a SVG loading issue with Regarding this ,I think, our ultimate goal is that |
Ah, makes sense that there is missing or differing something in the setup of nextjs then what works out of the box with I did a bit of googling about images from css in a nextjs setups, this may be helpful: |
The issue with absolute urls has been fixed in |
Hi there,
I was just testing your package within an editor I'm working on and noticed an issue with images loading when the package is used within a vue app with webpack. It also looks like someone else had the same issue and submitted a pull request #515 that has been merged, however the dist file has not been updated https://github.com/josdejong/jsoneditor/blob/master/dist/jsoneditor.css#L155
Can this be fixed please?
Thank you :)
The text was updated successfully, but these errors were encountered: