rebootcode / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

$.getSvgIcon(icon_id) undefined and no icons #994

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First I have to say that svg-edit is a great project!

Now my Problems:

I integrated the editor into a website (like an RTE) and this Javascript Error 
occours $.getSvgIcon(icon_id) is undefined.
I linked all files correctly...
I saw some ppl havin the same problem but no answer for that.

I dont really know if the problem is connecting but i get no icons too.
I saw some mime type addings to the server which seems correct for me cause the 
svg-editor is working perfectly in single mode only on integration into an 
existing page i have that problems.

I try to find it but help would be nice.

Original issue reported on code.google.com by kd.ericd...@googlemail.com on 8 Aug 2012 at 11:04

GoogleCodeExporter commented 8 years ago
Ok the icons I can see now.
The problem was that I made the imgPath in the svgEditor.setConfig relative.
The svgIcons script made a wrong ajax call with that url and the fallback from 
svgIcons is crappy and is only be used in opera.
So turn the url into an absolute works.

Suggestion name the imgPath to imgUrl.

But the next problem is that the drawing or creating of svg is not working too 
=(

...

Original comment by kd.ericd...@googlemail.com on 9 Aug 2012 at 11:45

GoogleCodeExporter commented 8 years ago
same for langPath and extPath

Original comment by kd.ericd...@googlemail.com on 9 Aug 2012 at 11:46