[[TOC]]
This plugin offers seamless integration of Cloudflare Stream with Flotiq, providing users with an intuitive way to embed video content directly from the rich text editor. With this solution, adding Cloudflare Stream videos becomes effortless, eliminating the need for manual embed code insertion. It's a perfect tool for those looking to enhance their content with multimedia elements while keeping the process simple and efficient.
To start using the plugin, simply fill in the required details using the information from your Cloudflare account.
To generate a snippet, go to the edit page of the selected video and click 'Generate Snippet'.
After generating the snippet, it will appear in the same place as the 'Generate Snippet' button.
Warning: The video may not be ready for streaming yet. If that's the case, you'll need to check back in a while.
After clicking the 'Snippet Preview' button, a modal will open where you can adjust the video settings and preview the changes in real time.
To inject a snippet directly from the rich text editor, click the player icon at the end of the options bar.
A modal will open, allowing you to select existing media or add new ones.
Note: The plugin only supports video media. Selecting non-video media will result in an error.
After selecting the media, another modal will open where you can adjust the video settings, see a live preview, and inject it into the editor.
After clicking the 'Inject Snippet' button, the snippet will automatically be added to the rich text editor content.
yarn- to install dependenciesyarn start- to start development mode - rebuild on file modifications- update your
plugin-manifest.jsonfile to contain the production URL and other plugin information yarn build- to build plugins
Dev environment is configured to use:
prettier- best used with automatic format on save in IDEeslint- it is built into bothstartandbuildcommands
The plugins are built into a single dist/index.js file. The manifest is copied to dist/plugin-manifest.json file.
Warning: While developing, you can use https://localhost:3053/plugin-manifest.json address to load the plugin
manifest. Make sure your browser trusts the local certificate on the latter, to be able to use it e.g. with
https://editor.flotiq.com
Hint: You can use localhost url from development mode https://localhost:3053/index.js
- Open Flotiq editor
- Open Chrome Dev console
- Execute the following script
FlotiqPlugins.loadPlugin('plugin-id', '<URL TO COMPILED JS>')
- Navigate to the view that is modified by the plugin
- Open Flotiq editor
- Open Chrome Dev console
- Paste the content of
dist/index.js - Navigate to the view that is modified by the plugin
Hint: You can use localhost url from development mode https://localhost:3053/plugin-manifest.json
- Open Flotiq editor
- Add a new plugin and paste the URL to the hosted
plugin-manifest.jsonfile - Navigate to the view that is modified by the plugin







