Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.75 KB

README.md

File metadata and controls

64 lines (42 loc) · 1.75 KB

Pageflow Embedded iFrame

Page type adding an embedded iframe with any arbitrary URL.

Installation

Add this line to your application's Gemfile:

# Gemfile
gem 'pageflow-embedded-iframe'

Run bundle install

Register the page type:

# config/initializers/pageflow.rb
Pageflow.configure do |config|
  config.page_types.register(Pageflow::EmbeddedIframe.page_type)
end

Include javascript/stylesheets:

# app/assets/javascripts/pageflow/application.js
//= require pageflow/embedded_iframe

# app/assets/javascripts/pageflow/editor.js
//= require pageflow/embedded_iframe/editor

# app/assets/stylesheets/pageflow/application.css.scss;
@import "pageflow/embedded_iframe";

# app/assets/stylesheets/pageflow/editor.css.scss;
@import "pageflow/embedded_iframe/editor";

# app/assets/stylesheets/pageflow/themes/default.css.scss
@import "pageflow/embedded_iframe/themes/default";

Troubleshooting

If you run into problems while installing the page type, please also refer to the Troubleshooting wiki page in the Pageflow repository. If that doesn't help, consider filing an issue.

Contributing Locales

TBA