mails2nitesh / kfm

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

return path image contain both \ and / #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.create three level sub directory
2.upload a file
3.change file return url to ckeditor

What is the expected output? What do you see instead?
it return path image contain both \ and /. and my image won't be displayed
corecly.
i only want return image path contain only /

What version of the product are you using? On what operating system?
1.4.5

Please provide any additional information below.

Original issue reported on code.google.com by MRvuongx@gmail.com on 14 Apr 2010 at 8:19

Attachments:

GoogleCodeExporter commented 8 years ago
are you running it on a Windows or Linux server?

Original comment by kae.verens@gmail.com on 14 Apr 2010 at 8:44

GoogleCodeExporter commented 8 years ago
i'm using window 7.

Original comment by MRvuongx@gmail.com on 14 Apr 2010 at 12:47

GoogleCodeExporter commented 8 years ago
I have the same problem. KFM 1.4.7 with TinyMCE. Return path is 
http://foo.de/bar/foo.org/data/projects\preamp\img/preamp_IMG_1363.JPG
"data" is the basedir for KFM. Windows Server/xampp

Original comment by thomas.d...@googlemail.com on 21 Aug 2010 at 11:39

GoogleCodeExporter commented 8 years ago
when I use linux server . The return path work property. 

Original comment by MRvuongx@gmail.com on 22 Aug 2010 at 5:14

GoogleCodeExporter commented 8 years ago
yes. uploaded to linux hosting. It work property.

Original comment by MRvuongx@gmail.com on 6 Jan 2011 at 7:45

GoogleCodeExporter commented 8 years ago
I don't have a windows server to check, but try this.

in plugins/return_url/plugin.js, this is line 24:
window.SetUrl(url,0,0,caption);

change it to this:
window.SetUrl(url.replace(/\\/g,'/'),0,0,caption);

tell me if that works, so I can add it to the SVN

Original comment by kae.verens@gmail.com on 6 Jan 2011 at 9:24

GoogleCodeExporter commented 8 years ago
I just tested your proposal. Works fine for me.
Hint: Also change the "return thumbnail" function, there is the same problem.

Thank you!

Original comment by thomas.d...@googlemail.com on 7 Jan 2011 at 7:11

GoogleCodeExporter commented 8 years ago
Work for me to.

Tks

Original comment by andreman...@gmail.com on 1 Feb 2011 at 2:15