vue-ckeditor2 icon indicating copy to clipboard operation
vue-ckeditor2 copied to clipboard

uploading a file from ckeditor to firebase

Open Alosies opened this issue 6 years ago • 8 comments

Hi,

I'm trying to get the filedata after uploading an image to send it to firebase using axios. But I am not able to get the filedata. Is there anyway I can achieve this. All my googling only led me to adding an url to 'filebrowserUploadUrl'. But I am not sure how to get the data out of it.

Alosies avatar Aug 02 '18 07:08 Alosies

Hi,

Any update on this? If you can just guide me through on how to get the uploaded data into the vue component, then I will manage to send it to firebase. Just because I could not achieve this functionality in CKEditor, I'm using Quill editor side by side. :-(

Alosies avatar Aug 04 '18 17:08 Alosies

Hi @Alosies

In Ckeditor you can get data contain image with url image (src attribute) via v-model. If you want to get info of filedata when you upload file, I will investigate continue.

dangvanthanh avatar Aug 04 '18 17:08 dangvanthanh

@dangvanthanh Thanks for the reply.

I'm looking to get the filedata only. So that I can send it to firebase to save my images.

Alosies avatar Aug 05 '18 04:08 Alosies

@Alosies

If you want get the file data and send to firebase. You need modify upload file plugin you use when you enter Ok button. It will send info of file data to firebase.

dangvanthanh avatar Aug 05 '18 04:08 dangvanthanh

Hello , is there any updates on this ? For the moment I had to create a different upload form where the user uploads the images separatly to firebase and copies the generated download link into the image info popup. I find it not practical at all.

v0lsh3bnik avatar Aug 24 '18 11:08 v0lsh3bnik

@v0lsh3bnik

From v2.1.0 of vue-ckeditor2 I support events in Ckeditor such as fileUploadRequest and fileUploadResponse. I hope it will help you resolve your problem.

dangvanthanh avatar Oct 24 '18 00:10 dangvanthanh

hallo! is there any example of how to do this?

ctwhome avatar Feb 14 '19 19:02 ctwhome

Upload Button does not show, any updates on this?

vortixhead avatar May 03 '19 00:05 vortixhead