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

Please sign in to leave a comment.