Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Image Comparison shortcode JS error from WYSIWYG #214

@mviggiano

Description

@mviggiano
juxtapose.js:248 Uncaught ReferenceError: jQuery is not defined
    at JXSlider.displayCredits (juxtapose.js:248)
    at JXSlider._init (juxtapose.js:387)
    at JXSlider._onLoaded (juxtapose.js:367)
    at Image.JXSlider.imgAfter.image.onload (juxtapose.js:170)

This looks like it's happening because jQuery is not being passed into / defined in the iframe that the shortcode lives in within the WYSIWYG. Updating the Juxtapose library to the newest version appeared to fix this when I tried it out (the jQuery dependency has been eliminated I believe), but resulted in some display issues in the post preview. This doesn't appear to cause any functionality issues, though; everything still works fine on the admin side. Curious as to whether folks see a clear fix for this or path forward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions