Class: Thredded::HtmlPipeline::WrapIframesFilter

Inherits:
HTML::Pipeline::Filter
  • Object
show all
Defined in:
lib/thredded/html_pipeline/wrap_iframes_filter.rb

Overview

Wraps iframes with a <div class=“thredded–embed-16-by-9”/>

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
# File 'lib/thredded/html_pipeline/wrap_iframes_filter.rb', line 7

def call
  doc.css('iframe').wrap('<div class="thredded--embed-16-by-9"/>')
  doc
end