Feel free to amend the patch as needed but it allows FCKeditor to plug into Image Browser out of the box.

Comments

jdelaune’s picture

StatusFileSize
new1.39 KB

Updated patch. more details about the project here: http://drupal.org/project/imagebrowser

jdelaune’s picture

StatusFileSize
new1.39 KB

Last patch I promise. The window size has changed that's all. Cheers :)

jdelaune’s picture

StatusFileSize
new1.39 KB

Hah I eat my hat. Got it slightly wrong. This one IS the last one!

wwalc’s picture

Status: Needs review » Needs work

Ok, no updates since a week I guess it's really a final patch ;-)

It works, Image Browser module is really nice, but I have a feeling that this patch could be improved. How about:

          $js .= $js_id .".Config['ImageBrowser']= true;\n";
          $js .= $js_id .".Config['LinkBrowser']= true;\n";
          $js .= $js_id .".Config['FlashBrowser']= false;\n";
          $js .= $js_id .".Config['ImageBrowserURL']= '". $host ."?q=imagebrowser/view/browser&app=FCKEditor';\n";
          $js .= $js_id .".Config['LinkBrowserURL']= '". $host ."?q=imagebrowser/view/browser&app=FCKEditor';\n";
          $js .= $js_id .".Config['ImageBrowserWindowWidth']= '680';";
          $js .= $js_id .".Config['ImageBrowserWindowHeight'] = '439';";
          $js .= $js_id .".Config['LinkBrowserWindowWidth']= '680';";
          $js .= $js_id .".Config['LinkBrowserWindowHeight'] = '439';";

This way Image Browser could be used also as a Link Browser. The advantage is that it could be also used in a Link dialog box and additionally, in Image dialog box, it would be possible to easily insert a thumbnail that links to a full size image.
What do you think about it? Did you have any problems with setting imagebrowser as a LinkBrowser?

jdelaune’s picture

What variables need to be passed back in the LinkBrowser then?

Sounds good if we can get it working.

wwalc’s picture

Actually it seems to work without further modifications... so no changes in the Image Browser required for this feature to work.
So if it's ok for you, I'll make Image Browser also a "Link Browser" in FCKeditor.

I cannot find any issues with it and if anyone finds any, we'll just fix it quickly :-)

jdelaune’s picture

Just tested it as well. Looks fine to me. I'm all OK to go :) Cheers

wwalc’s picture

Status: Needs work » Fixed

Ok... fixed in CVS! I'm very happy that another image browser is available for FCKeditor. It's very intuitive and easy to install.
All changes should be available in a dev release tomorrow (another RC release of FCKeditor module coming soon).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.