CKEditor passes a specific Type var when creating links to manage resources within CKFinder. While I understand the reasoning behind this, since CKEditor has no core "File" button in addition to "Image" and "Flash" there is a significant hole for users who want to manage a non-image, non-flash file.
The particular code I'm referring to is the following in ckeditor.lib.inc:
$settings['filebrowserImageBrowseUrl'] = $ckfinder_full_path . '/ckfinder.html?Type=Image&id=' . $profile_name;
$settings['filebrowserFlashBrowseUrl'] = $ckfinder_full_path . '/ckfinder.html?Type=Flash&id=' . $profile_name;
If an option was created within the UI to allow an expanded Type scope for a button, perhaps within the advanced settings of a particular ckeditor profile, users could continue to utilize a button to manage PDF, XLS, and various other resources that might link to a page.
I understand that this might be an older methodology and the maintainers of this module might be thinking that resource management should be handled at a node level or through a different resource management module like the media project but personally I feel those methods aren't quite polished enough to recommend to users yet.
I'd be very happy to contribute a patch to address this issue but figure having a conversation about how to best address the issue would be the best place to start to ensure that any work done can be contributed back and will be accepted. Feel free to discuss or point me in a different direction if you have any recommendations on this issue.
Thanks,
Jason
Comments
Comment #1
jlancaster commentedSomeone brought to my attention that the link tool by default has an option to invoke CKFinder. Since I've been using the ckeditor_link module almost exclusively on all installs, I didn't realize this existed. This is probably something to bring up with the ckeditor_link maintainers instead. My apologies, I'm closing this issue.