Feel free to amend the patch as needed but it allows FCKeditor to plug into Image Browser out of the box.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | patch_55-1.patch.txt | 1.39 KB | jdelaune |
| #2 | patch_55-1.patch.txt | 1.39 KB | jdelaune |
| #1 | patch.patch | 1.39 KB | jdelaune |
| patch.patch | 1.23 KB | jdelaune |
Comments
Comment #1
jdelaune commentedUpdated patch. more details about the project here: http://drupal.org/project/imagebrowser
Comment #2
jdelaune commentedLast patch I promise. The window size has changed that's all. Cheers :)
Comment #3
jdelaune commentedHah I eat my hat. Got it slightly wrong. This one IS the last one!
Comment #4
wwalc commentedOk, 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?
Comment #5
jdelaune commentedWhat variables need to be passed back in the LinkBrowser then?
Sounds good if we can get it working.
Comment #6
wwalc commentedActually 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 :-)
Comment #7
jdelaune commentedJust tested it as well. Looks fine to me. I'm all OK to go :) Cheers
Comment #8
wwalc commentedOk... 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).