Image upload not adding incomplete URL to document.
Is this a bug report or feature request? (choose one)
🐞 Bug report | 🆕 Feature request | Other Other/Feature request
💻 Version of CKEditor
@ckeditor/ckeditor5-build-decoupled-document": "^12.3.1"
📋 Steps to reproduce
- When the image is uploaded to the server an incomplete URL is passed to the resove object in my custom image upload.
- The image is not added to the document.
✅ Expected result
Image added to the document
❎ Actual result
Not added
📃 Other details that might be useful
I created a custom image upload adopter, which works fine and I can upload an image to my server which then gets added to a 3rd party vendor. The JSON returned from the server does not contain a valid URL for the image.
Currently, in the document's which we edit the images call our server endpoint in the following format.
src="/imgAttachment?sys_id=xxxxxxxxxxxxxxxx"
This will hit our server endpoint which calls our vendor and retrieves the image.
In my upload function, I create the URL as described above.
upload() {
let upload = new Promise((resolve, reject)=>{
this.loader.file.then(
(data)=>{
this.uploadFile(data)
.subscribe(
(result)=>{
resolve({ default:'/imgAttachment/?sys_id=' + result.result.sys_id});
},
(error)=>{
reject(data.msg);
}
);
}
);
});
return upload;
So my question is can the editor add image URL's which are not complete, is there a way I can override or set a configuration in order for this to happen. If not can I request a feature to add the ability to add imcomplete URL's.