TwistedInteractive / ckeditor

Symphony CMS extension that provides the CKEditor WYSIWYG editor for text fields.
http://symphony-cms.com/download/extensions/view/35082/
Other
19 stars 24 forks source link

File Browser displays no images #13

Open lewiswharf opened 12 years ago

lewiswharf commented 12 years ago

After clicking "Browse Server" button I see my section that has a file upload field, but when I click on it nothing happens. I'm using Firefox 12, Windows 7, Symphony 2.3, and the extension version is 1.3.2.

I expect entries/images to display after clicking on the section.

renansantos commented 12 years ago

Me too! Last Firefox and Chrome - Mac

renansantos commented 11 years ago

Is your website installed in a subdirectory (e.g. localhost/myWebsite)? The problem is that the Image Browser creates links with relative paths. And relative paths to the root will point to localhost/ and not to localhost/myWebsite/

So, in line 77 of content.filebrowserajax.php i have changed this: $value = '<a href="/workspace'.$info['file'].'">'; To this: $value = '<a href="'.URL.'/workspace'.$info['file'].'">';

Be aware that your text fields will store the entire url. So if you change from dev server to production you will have to change all your entries urls.

andrewminton commented 10 years ago

Or you could use the ninja technique to string replace the dev url for production url on all links and img elements that match...

Due to thw new path changes in 2.3.3 there is further work required to sort out the thumbnails in the filebrowser.. will send PR this weekend with local fix.