Created
September 30, 2019 09:31
-
-
Save yann-yinn/79d17c5556d4d32cb6eecbb07eea6d2c to your computer and use it in GitHub Desktop.
iframely render text with oembed tags in a theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll("oembed[url]").forEach(element => { | |
iframely.load(element, element.attributes.url.value); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment