Support #11193
closed
Added by Laurie Hurson about 6 years ago.
Updated almost 6 years ago.
Category name:
WordPress (misc)
Description
Hi All,
We have a faculty member using StoryMaps JS and wants students to embed maps into posts for display on the commons site: https://storymap.knightlab.com/
We have a timelineJS plugin to embed timelines (created with a tool from the same developers) but it looks like there is nothing similar for storymapsjs. Storymaps can be embedded with an iframe but it is striped out when the post is published or saved.
Can we create a workaround to embed storymaps on the commons? Maybe adding it to this help page about embedding? https://help.commons.gc.cuny.edu/embedding-content-from-other-sites/
- Status changed from New to Reporter Feedback
Laurie, could you please share the URL of a specific storymap that the user might want to embed, along with the iframe code that the storymaps website provides?
Iframe link from professor:
<iframe src="https://uploads.knightlab.com/storymapjs/66cdba549e8279c7f6017c15f4d147ba/a-story/draft.html" frameborder="0" width="100%" height="800"></iframe>
- Assignee set to Boone Gorges
- Target version set to 1.14.10
Sorry this got lost in the shuffle. We'll shoot for the next release.
- Status changed from Reporter Feedback to Assigned
- Assignee changed from Boone Gorges to Raymond Hoh
- Target version changed from 1.14.10 to 1.14.11
It looks like StoryMaps JS uses oEmbed, but WordPress has very tight security surrounding <iframe>
elements, which is why you are seeing nothing during previews and saves, Laurie.
I want to spend a little time to loosen these restrictions that WordPress imposes instead of introducing yet another shortcode. This will also be useful for future sites that use oEmbed with iframes, but are restrained by WordPress.
Assigning to myself.
- Category name set to WordPress (misc)
- Status changed from Assigned to Resolved
Thanks Ray - I have added to documentation.
Also available in: Atom
PDF