This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Comments

4 comments

  • Avatar
    Maria Rajiv

    Close button is not visible

    0
    Comment actions Permalink
  • Avatar
    Erwin Lukas

    Hi Maria,

    Looking at the screenshot, it looks like you have an iframe for the media library widget. And the height of the iframe is smaller than the height of the upload widget. Is it possible to increase the height of the iframe?

    Secondly, can you share your code in JSFiddle or something similar so I can take a look of the code?

    Looking forward to your response.

    Regards,
    Erwin Lukas

    0
    Comment actions Permalink
  • Avatar
    Maria Rajiv

    Hi Erwin,

     

    Thanks for the response. Below is the code block i am using. 

    <script>
    var ml = cloudinary.createMediaLibrary({
    cloud_name: 'xxxxxx',
    api_key: 'xxxxxxxxx',
    username: 'xxxxxxxxx@gmail.com',
    button_class: 'myBtn',
    button_caption: 'Insert Images'
    }, {
    insertHandler: function (data) {
    debugger;
    data.assets.forEach(asset => {
    if (asset.derived === undefined) {
    document.getElementById("Url").value = asset.secure_url;
    } else
    {
    document.getElementById("Url").value = asset.derived[0].secure_url;
    }
    });
    }
    },
    document.getElementById("openbtn")
    );

    0
    Comment actions Permalink
  • Avatar
    Erwin Lukas

    Hi Maria,

    Thank you for sharing the Media Library widget code block. The code itself looks fine, however as I mentioned earlier, it seems like you have an iframe or parent element where the widget is in. That parent element itself seems too small, or shorter than the height of the upload widget.

    Can you take a look that section of the code or share that code?

    Regards,
    Erwin Lukas

    0
    Comment actions Permalink

Post is closed for comments.