Gisellameloni / svg-edit

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

extensions use hardcoded 'extensions/' and 'images/' instead of extPath / imgPath #1184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

If custom paths are used, the extension resources (xml, png...) are not found:

svgEditor.setConfig({
  extPath: '../lib/svg-edit-2.6/extensions/',
  imgPath: '../lib/svg-edit-2.6/images/'
});

In what version of SVG-edit does the problem occur? (Latest trunk, 2.5.1,
etc)

Latest / 2.6

Please provide any additional information below.

This commit fixes the issue for me:
https://github.com/mmariani/svg-edit/commit/71d00d2045fc6e3a2bd0d62e8bd21dd3c7be
a0d5

Original issue reported on code.google.com by bir...@gmail.com on 4 Feb 2014 at 1:36

GoogleCodeExporter commented 9 years ago
I have applied the suggested commit in trunk (along with JSLint fixes to 
various extensions). I think we might want to change the direct references to 
curConfig across all extensions to use $.pref() instead, but I'm not yet 
finished with a related commit, so I'll hold off on that for now (and it is not 
meant to change any behavior). Thanks!

Original comment by bret...@gmail.com on 12 Feb 2014 at 9:52