onimamy / tinycimm

Automatically exported from code.google.com/p/tinycimm
0 stars 0 forks source link

Image insert in resize window #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. The problem happens in CI 2.0 when you dont have aplication and system on 
same level as your domain.com/
2. And then when you upload an image and try to add it the url is wrong
3. it produces such url /assets//assets/cache/...

to fix the problem open  the file: 
js/tiny_mce/plugins/tinycimm/js/tinycimm_image.js

at line 81:
var win = tinyMCEPopup.getWindowArg("window"), url = 
this.settings.tinycimm_assets_path+image.filename;

replace with this:
var win = tinyMCEPopup.getWindowArg("window"), url = image.filename;

Original issue reported on code.google.com by ah9...@gmail.com on 22 Mar 2011 at 3:10