Wysiwyg-editor: imageUploadURL server response data

Created on 23 Apr 2015  路  9Comments  路  Source: froala/wysiwyg-editor

Hi!
Can i change how to parse response from the server which handles file uploads?

e.g. parse image link from this response:

{
  "files": [{
    "name": ...,
    "size": ...,
    "type": ...,
    "error": ...,
    "path": ...,
    "url": ...
  }]
}

Problem is that i can't change the response.

Most helpful comment

Now froala's version is 2.5.0,but i can't find the option for that.@stefanneculai

All 9 comments

It is not possible at this point. We're currently developing the version 2.0 that will have a special option for that.

Now froala's version is 2.5.0,but i can't find the option for that.@stefanneculai

@stefanneculai any news?

image.uploaded event can be used in V2 for parsing a custom response from the server and insert that image.

@stefanneculai But first of all is fired error callback - it's not necessary in many cases with custom response...

You could either pass "link": "" so that the error is not triggered, or use the same param from image.error event. It is not documented, but the response is there as well.

@stefanneculai
You could either pass "link": ""
sorry, where should i pass it?

In the server response. We use this repo for bug tracking only. We offer tech support under the Advanced and OEM license via email. Please contact us there for extending the editor.

you can use image.get method to pass in image.insert as existing image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isubasti picture isubasti  路  4Comments

Fandangi picture Fandangi  路  3Comments

Krisell picture Krisell  路  3Comments

george-norris-salesforce picture george-norris-salesforce  路  4Comments

archonic picture archonic  路  4Comments