1.0.3 • Published 4 years ago

oembed-replacer v1.0.3

Weekly downloads
12
License
ISC
Repository
gitlab
Last release
4 years ago

Oembed replacer

This module replaces oembed tags with iframe elements

Instructions:

  1. install with npm npm install oembed-replacer

  2. import module import OembedReplacer from "oembed-replacer/oembedReplacer"

  3. create instance

new OembedReplacer(options)

options : {
   width: <string> -- defines elements width,
   height: <string> -- defines elements height,
   ids: <array> -- if provided elements with ids will be replaced
   cssClass: <string> -- if provided elements with class will be replaced
   sourceAttribute: <string> -- if provided source of media will be searched in attribute of element,
                                 else innerHTML is used to provide source
}
1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago