Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORTL in APEX 24.2.1 - Image Upload Fails with filerepository-no-upload-adapter

chrispiMar 5 2025

Description:

In APEX 24.2.1, ORTL no longer supports adding new images to the rich text editor via the toolbar, drag-and-drop, or paste, breaking functionality that previously worked. Existing Base64 images in the CLOB column remain editable (move, resize, caption), but new image uploads fail.

Previously, this worked using the following Initialization JavaScript Function:

function(options) {

options.editorOptions.extraPlugins.push(CKEditor5.upload.Base64UploadAdapter);

let toolbar = options.editorOptions.toolbar || [];

toolbar.push("uploadImage");

options.editorOptions.toolbar = toolbar;

return options;

}

This enabled native Base64 uploads, storing content in a CLOB seamlessly. In 24.2.1, `CKEditor5.upload.Base64UploadAdapter` is undefined, and attempts to add images result in `filerepository-no-upload-adapter`.

We’ve attempted the following workarounds without success:

1. Overriding `FileRepository.createUploadAdapter` to convert files to Base64 and insert via `editor.model.change` - still triggers `filerepository-no-upload-adapter`.

2. Adding `uploadImage` to `toolbar.items` and intercepting click/drag/paste events manually - blocked by persistent upload errors or syntax issues.

3. Moving logic to *Execute when Page Loads* with `apex.region` - unreliable and unmaintainable.

4. Simplifying *Initialization JavaScript Function* to minimal valid JS (e.g., `window.E=this`) - rejected with `SyntaxError: missing ) after argument list`.

The core issues are:

- Absence of `Base64UploadAdapter` in ORTL’s CKEditor5 build.

- Inability to disable native upload behavior cleanly.

- Unexpected `SyntaxError` in *Initialization JavaScript Function* for valid JS.

Request:

- Provide documentation on enabling Base64 image uploads in ORTL (APEX 24.2.1).

- Restore `CKEditor5.upload.Base64UploadAdapter` or supply an equivalent solution.

Environment:

- APEX 24.2.1

- ORTL component

- Chrome 128

Thank you

log_ORTE_DD_image.log

Comments
Post Details
Added on Mar 5 2025
6 comments
428 views