Posted by jdelaune on October 29, 2008 at 1:57pm
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 6.x-1.3-rc3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Feel free to amend the patch as needed but it allows FCKeditor to plug into Image Browser out of the box.
| Attachment | Size |
|---|---|
| patch.patch | 1.23 KB |
Comments
#1
Updated patch. more details about the project here: http://drupal.org/project/imagebrowser
#2
Last patch I promise. The window size has changed that's all. Cheers :)
#3
Hah I eat my hat. Got it slightly wrong. This one IS the last one!
#4
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?
#5
What variables need to be passed back in the LinkBrowser then?
Sounds good if we can get it working.
#6
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 :-)
#7
Just tested it as well. Looks fine to me. I'm all OK to go :) Cheers
#8
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).
#9
Automatically closed -- issue fixed for two weeks with no activity.