suneditor icon indicating copy to clipboard operation
suneditor copied to clipboard

Question on using imageGallery(imageGalleryUrl)

Open abvas opened this issue 2 years ago • 3 comments

Good afternoon!

Question on using imageGallery(imageGalleryUrl)

My images are stored on a server to which I do not have full access. From the server, I get a response like this:

{
    response: {
        "results": [
            {
                "Image": "//s3.amazonaws.com/.../grandiosa-1.jpg",
                "Title": "Title 1",
                "Image": "//s3.amazonaws.com/.../grandiosa-2.jpg",
                "name": "Test image",
                "alt": "alt text",
                "tag": "tag name"
            },
// ----------------------//
        ],
    }
}

In your example:

format: {
      "result": [
//---------//

And I get "response" and "results" and I can't change that.

Please tell me if I can somehow use all this to use imageGallery?

Thank you.

abvas avatar Aug 06 '22 21:08 abvas

It could be a typo issue. results > result

JiHong88 avatar Aug 11 '22 14:08 JiHong88

I meant that the data from the server is returned in this form:

{
     response: {
         "results": [
             {

it's "results" not "result" and I can't change that.

And the question is - can I somehow use this for imageGallery(imageGalleryUrl)

abvas avatar Aug 12 '22 15:08 abvas

https://etyswjpn79.execute-api.ap-northeast-1.amazonaws.com/suneditor-demo This is the API currently used by the demo site. Please refer to the response data.

JiHong88 avatar Aug 16 '22 09:08 JiHong88