Sha256: 66f2ebff2711d62e588c6b6508274cef19ab17e60b69fb1063e8d23baecd5153
Contents?: true
Size: 664 Bytes
Versions: 15
Compression:
Stored size: 664 Bytes
Contents
module Onebox module Engine class SlidesOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/slides\.com\/[\p{Alnum}_\-]+\/[\p{Alnum}_\-]+$/) def to_html <<-HTML <iframe src="//slides.com#{uri.path}/embed?style=light" width="576" height="420" scrolling="no" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen> </iframe> HTML end def placeholder_html "<img src='#{raw[:image]}'>" end end end end
Version data entries
15 entries across 15 versions & 1 rubygems