Forum OpenACS Development: xowiki, ckeditor and file storage?
With xinha we had a plugin that allowed xinha to browse file storage called oacsfs. Has anyone used anything similar for ckeditor? We're trying to get a solution together using the native file api with ckeditor and file storage but have been hitting a number of brick walls.
Thank you in advance for any tips!
Have you tried the version of richtext-ckeditor4 0.14 (in CVS head, since 2017-08-19). It supports the standard "filebrowser" plugin of CKEditor for uploading images, such that no special plugin is required.
This new integration does not require the file-storage package at all but uses "attachments" to associate pages with images and to clean up, when the objects, to which the images are attached, are deleted.
I'm not too familiar with the attachments package. So I've added it under our xowiki package. In the installation documentation, it has the following:
"First, you must select a file-storage instance that will provide the files you can attach.
You must map the root folder of that file-storage instance with the package_id of the instance of your package.
fs::get_root_folder and attachments::map_root_folder"
If I am reading this correctly, once I fix my permission issue, I still need to link the xowiki package with the root folder of a file storage instance via the attachments package by using the code listed above.
I'm trying to make sure I am on the right track before going too far down a rabbit hole.
Thank you again in advance.
The functionality with the attachments is post the 5.9.1 release, so make sure, you have the changes for the theme , for news , forums , or xowiki . Check as well your custom templates if applicable, whether these pass a property for "displayed_object_id".
Concerning file-storage dependencies of the attachment package: The attachment package has essentially 2 parts: (a) an internal API and (b) a user interface. The way the attachments are used in the ckeditor packages, only (a) is used, since the user-interface is provided by the ckeditor4. The part of the attachment-description is based on the assumption, that everything works over the file-storage.... it should be made more precise.
hope this helps