Feature #11038
closedSutori question
0%
Description
Hunter uses Sutori for teaching. It seems that the only way to embed Sutori content is to activate an iframe plugin.
https://help.sutori.com/en/article/how-do-i-embed-a-story-into-wordpress-zzwr13/
I think the answer is no, but just wanted to check if the iframe plugin (https://wordpress.org/plugins/iframe/) would be possible on the Commons.
Or is there another solution? This request is from Abigail Torres, at Hunter's Center from Online Learning.
Related issues
Updated by Raymond Hoh almost 6 years ago
Hi Scott,
We would not allow the Iframe plugin due to security concerns. However, we might be able to write a small plugin to deal with Sutori content.
If we decide to write a plugin, do we write a shortcode plugin or a Gutenberg plugin? A shortcode plugin would be relatively easy to write. A Gutenberg Embed block would require a bit more dev time.
As mentioned on the Sutori help article, Hunter can always link directly to their content for now.
Updated by Raymond Hoh almost 6 years ago
- Related to Feature #11036: Voicethread embed support added
Updated by Boone Gorges almost 6 years ago
- Tracker changed from Support to Feature
Updated by Boone Gorges almost 6 years ago
For this and the related tickets, let's create shortcode and/or embed handlers. (Embed handlers make sense when the provider has oEmbed support, or when the iframe doesn't really need any user-customizable options, like height/width.) See https://github.com/cuny-academic-commons/cac/blob/1.14.x/wp-content/mu-plugins/assets/embeds.php, https://github.com/cuny-academic-commons/cac/blob/1.14.x/wp-content/mu-plugins/assets/shortcodes.php In cases where it's supported on wordpress.com, check to see if we can steal from Jetpack.
Updated by Raymond Hoh almost 6 years ago
- Status changed from New to Staged for Production Release
- Assignee set to Raymond Hoh
I have added Sutori support as an embed handler. (Reference - https://github.com/cuny-academic-commons/cac/commit/a099bcf04a2a31fa43ebe1270e12e1f08ee39206)
This means when using the Classic Editor, you can paste a Sutori URL on its own line:
eg.
My content https://www.sutori.com/story/prehistory-and-human-evolution--5BVh1ozQfZe9yUgarPLYewJ4/
And this will embed properly.
For Gutenberg, embed handler support is currently not implemented. Let's keep an eye on the following WordPress ticket, which will address the problem for WP 5.2:
https://core.trac.wordpress.org/ticket/45447
Updated by Boone Gorges almost 6 years ago
- Status changed from Staged for Production Release to Resolved