Skip to content

v1.12.0

Compare
Choose a tag to compare
@shobhitsharma shobhitsharma released this 08 Jan 21:28
· 12 commits to master since this release
  • update Added Embedo.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 as iframe 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