v1.12.0
update
AddedEmbedo.plugins([ ... plugins ])
to initialize multiple plugins during init for es6 or AMD modules.
import Embedo from 'embedo'
import withEmbedoReddit from 'embedo/plugins/reddit'
import withEmbedoGmaps from 'embedo/plugins/gmaps'
import withEmbedoFlickr from 'embedo/plugins/flickr'
// Then, load plugins
Embedo.plugins([ withEmbedoGmaps, withEmbedoReddit, withEmbedoFlickr ])
// OR works as HOC
withEmbedoReddit(Embedo)
// Then init Embedo instance
Embedo.init({ ..., reddit: true, googlemaps: { ... } })
Try it on codesandbox demo here.
-
patch
Fixed instagram embed by adding embedding asiframe
as fallback. Due to recent changes with instagram API, they broke their own embed system, but if you add suffix/embed
after post/photo URL, it can embed as iframe, see example here. -
Added Flickr plugin