I am attempting to use my own datasource in an xpage application.
The datasource is a managed-bean which implements the com.ibm.xsp.model.DataObject interface.
Everything is working fine, including text in the CKEditor, except for images in the CKEditor.
Here's what appears to happen when you upload an image using the CKEditor with a DominoDocument as datasource:
- Image is uploaded.
- Image is persisted in the
DominoDocument(or somewhere temporarily, until the document is saved) A javascript callback is sent back to the CKEditor in the response, e.g.
window.parent.CKEDITOR.tools.callFunction(0, "/NestedRichText.nsf/xsp/.ibmmodres/persistence/DominoDoc-5-Body/list-remove_1358252554024.gif");
Using my datasource, I see that an object of type com.ibm.xsp.component.UIInputRichtText.EmbeddedIMage is set as the value on the RichText field when the image is uploaded.
The problem is I don't really know how to deal with this object. I've looked at the UIInputRichText and DominoDocument objects and have seen a few promising methods. But I haven't been able to get this to work.
Has anyone else gotten this to work?