https://github.com/codevise/pageflow-embedded-video
Pageflow pagetype for embedded youtube/vimeo videos
https://github.com/codevise/pageflow-embedded-video
Last synced: 5 months ago
JSON representation
Pageflow pagetype for embedded youtube/vimeo videos
- Host: GitHub
- URL: https://github.com/codevise/pageflow-embedded-video
- Owner: codevise
- Created: 2015-01-29T19:39:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T05:52:21.000Z (over 2 years ago)
- Last Synced: 2025-11-16T12:23:11.399Z (7 months ago)
- Language: JavaScript
- Size: 175 KB
- Stars: 0
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Pageflow Embedded Video
[](http://badge.fury.io/rb/pageflow-embedded-video)
[](https://github.com/codevise/pageflow-embedded-video/actions)
Page type showing Youtube/Vimeo videos in an embedded iframe.
## Installation
Add this line to your application's Gemfile:
# Gemfile
gem 'pageflow-embedded-video'
Run `bundle install`
Register the plugin:
# config/initializers/pageflow.rb
Pageflow.configure do |config|
config.plugin(Pageflow::EmbeddedVideo.plugin)
end
Include javascript/stylesheets:
# app/assets/javascripts/pageflow/application.js
//= require pageflow/embedded_video
# app/assets/javascripts/pageflow/editor.js
//= require pageflow/embedded_video/editor
# app/assets/stylesheets/pageflow/application.scss;
@import "pageflow/embedded_video";
# app/assets/stylesheets/pageflow/editor.scss;
@import "pageflow/embedded_video/editor";
# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/embedded_video/themes/default";
## Configuration
Optionally, configure Pageflow Embedded Video by creating an initializer in your app
`config/initializers/pageflow_embedded_video.rb`.
Example:
Pageflow::EmbeddedVideo.configure do |config|
# Remove items to disallow hosts
# The listed hosts are supported by default:
# config.supported_hosts = %w(https://www.youtube.com http://www.youtube.com https://vimeo.com http://vimeo.com)
end
## Troubleshooting
If you run into problems while installing the page type, please also refer to the
[Troubleshooting](https://github.com/codevise/pageflow/wiki/Troubleshooting) wiki
page in the [Pageflow repository](https://github.com/codevise/pageflow). If that
doesn't help, consider
[filing an issue](https://github.com/codevise/pageflow-embedded-video/issues).
## Contributing Locales
Edit the translations directly on the
[pageflow-embedded-video](http://www.localeapp.com/projects/public?search=tf/pageflow-embedded-video)
locale project.