Forum OpenACS Development: Re: xowiki, ckeditor and file storage?

Posted by Gustaf Neumann on
Paul, one has to make sure, that the displayed_object_id is passed properly from the application to the toplevel template, such that the ckeditor knows to which object it should attach images. Although the displayed_object_id is an old thing, it is/was not passed properly in several templates via "property" statements. Since the permissions depend on the displayed_object_id, my first guess is, that this might be the problem in your installation.

The functionality of handling images in ckeditor via attachments was added after the 5.9.1 release, so make sure, you have the changes for the theme [1], for news [2], forums [3], or xowiki [4]. Check as well your custom templates if applicable, whether these pass a property for "displayed_object_id". Note, that xowiki can handle embedded images also via the xowikiimage plugin, which handles images as subobjects of wiki pages and which uses xowiki image markup (with "[[image:...]]"). In the latter approach, pages with embedded images can be exported/imported in other OpenACS instances, but with the ckfinder/attachments approach, images are currently not preserved.

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