1.0.3 • Published 4 years ago
oembed-replacer v1.0.3
Oembed replacer
This module replaces oembed tags with iframe elements
Instructions:
install with npm
npm install oembed-replacer
import module
import OembedReplacer from "oembed-replacer/oembedReplacer"
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
}