Grab the contents Ckeditor input file

Asked

Viewed 194 times

0

I’m having trouble getting the contents of a file input using Ckeditor.

I’ve tested it using the getlementById and everything else, but as the file upload pop-up is created after the page DOM does not work.

Also tested in this way unsuccessfully:

var element = CKEDITOR.document.getById( 'cke_145_fileInput_input' );
  • Did you ever consult the documentation? They indicate using: var data = CKEDITOR.instances.editor1.getData(); complementing http://docs.ckeditor.com/#! /api/CKEDITOR.editor-method-getData

  • Already tested. I use ASP VBS and want to upload without components. When the user selected the file I would like to convert it to Base64, play this data in a field and send it to the server I would use a method to save this Base64 image, but I am not able to do this function. I already have the upload working with the Aspupload component, but it is very slow and expires the page.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.