Skip to main content
Answered

Help with Web Plugin


Hello, 

ich have a problem with my first Miro Plugin. Attached a video that shows the issue:

https://storyxpress.co/video/k8shzojjkpud07w0c

Thanks for your help

BR Roman

Best answer by Boris Borodyansky

Roman, this should help:

change line 120 to be exactly like this:

<img src="${img.src}" data-image-url="${img.src}"> 

 

Then make sure that you use full direct urls for images in the images list. 

Let me know if it works (or does not :stuck_out_tongue_closed_eyes: )

View original
Was it helpful?

6 replies

Boris Borodyansky
Mironeer
Forum|alt.badge.img+1

Hey Roman!

Do I get it right that you take this code and have not changed anything?


I was using the code from the github repository:

https://github.com/miroapp/app-examples/tree/master/drag-and-drop

The only thing I changed was the img source for the svgs.


Boris Borodyansky
Mironeer
Forum|alt.badge.img+1

Got it, thanks.

Have you changed just the folder, or content of the ‘content.html’ as well?

Did the original example work fine for you?


Hello,

the only thing I changed (had to change) was the location of the images from img/xxx.svg to https://cdn.glitch.com/2f51cda1-059e-4050-b734-014233db8e72%2FAsset_54.svg 

Does that cause the problem and how to fix it?

Thanks

Roman


Boris Borodyansky
Mironeer
Forum|alt.badge.img+1

Roman, this should help:

change line 120 to be exactly like this:

<img src="${img.src}" data-image-url="${img.src}"> 

 

Then make sure that you use full direct urls for images in the images list. 

Let me know if it works (or does not :stuck_out_tongue_closed_eyes: )


Hey, yes - that worked and the hint with the full absolute URLs was helpful, otherwise it doesn’t work.

 

Thanks

 


Reply