galetahub/ckeditor — Issue #61: Changes for Filemanager working properly in Chrome
Author: dbachet
Created: 2011-12-29 10:43:36+00:00
State: open

Hi,

I had a problem with beeing able to select an image in filemanager on the Chrome browser. Upload as well wasn't working.

First I saw that my js files in filebrowser's folder weren't all there. I had to add them manually according to the [install_generator.rb](https://github.com/galetahub/ckeditor/blob/master/lib/generators/ckeditor/install_generator.rb) file:

````
def download_javascripts
js_dir = "#{install_dir}/ckeditor/filebrowser/javascripts"

say_status("fetching rails.js", "", :green)
get "https://github.com/rails/jquery-ujs/raw/master/src/rails.js", "#{js_dir}/rails.js"

say_status("fetching fileuploader.js", "", :green)
get "https://raw.github.com/galetahub/file-uploader/master/client/fileuploader.js", "#{js_dir}/fileuploader.js"

say_status("fetching jquery-1.6.2.min.js", "", :green)
get "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", "#{js_dir}/jquery.js"

say_status("fetching jquery.tmpl.min.js", "", :green)
get "https://raw.github.com/jquery/jquery-tmpl/master/jquery.tmpl.min.js", "#{js_dir}/jquery.tmpl.js"
end
````

Then I saw an error in the filebrowser/javascripts/application.js on the line 13:

I replaced `})(jQuery);` by `})($);`

Finally, it works on Safari, Chrome and Firefox for Mac OS

I have no question here to ask but still I don't know why 'jQuery' wasn't recognized in application.js

I don't know if it's an issue, and if it is I didn't check how to fix it for the gem. I apologize for this ;)