OD2 icon indicating copy to clipboard operation
OD2 copied to clipboard

Universal Viewer - share/embed not working as expected for WordPress

Open raybrarian opened this issue 5 years ago • 1 comments

Descriptive summary

Embed code not working as expected on WP - only get UV functionality when largets dimensions available (800x600) image is embedded. image

Example: <div class="uv" data-locale="en-GB:English (GB),cy-GB:Cymraeg" data-config="" data-uri="https://staging.oregondigital.org/concern/images/df719p38s/manifest" data-collectionindex="0" data-manifestindex="0" data-sequenceindex="0" data-canvasindex="0" data-xywh="-5991,-651,19288,6636" data-rotation="0" style="width:800px; height:600px; background-color: #000"></div><script type="text/javascript" id="embedUV" src="https://staging.oregondigital.org/universalviewer/dist/uv-2.0.1/lib/embed.js"></script><script type="text/javascript">/* wordpress fix */</script>

Expected behavior

Embed code works with typical web platforms.

Accessibility Concerns

None beyond embed expectations

raybrarian avatar Apr 09 '20 22:04 raybrarian

Reviewed By: @petersec ready to be worked on.

CGillen avatar Apr 14 '20 17:04 CGillen