Sha256: 1084a97e84ccac2e33a1d8c6487a624a96d27b1ee2d9f5cd23781a1528f29356

Contents?: true

Size: 617 Bytes

Versions: 8

Compression:

Stored size: 617 Bytes

Contents

module PageflowScrolled
  module Editor
    # @api private
    module SeedHtmlHelper
      include EntryJsonSeedHelper

      def scrolled_editor_iframe_seed_html_script_tag(entry)
        html = render(template: 'pageflow_scrolled/entries/show',
                      locals: {
                        :@entry => entry,
                        :@seed_options => {skip_collections: true}
                      })

        content_tag(:script,
                    html.gsub('</', '<\/').html_safe,
                    type: 'text/html',
                    data: {template: 'iframe_seed'})
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pageflow-15.1.2 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb
pageflow-15.1.1 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb
pageflow-15.1.0 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb
pageflow-15.1.0.rc0 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb
pageflow-15.1.0.beta6 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb
pageflow-15.1.0.beta5 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb
pageflow-15.1.0.beta4 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb
pageflow-15.1.0.beta3 entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb