Preview embeds with wpview and auto embed on paste
|Reported by:||iseulde||Owned by:|
So I've made a patch entirely based on @wonderboymusic's plugin (http://wordpress.org/plugins/audio-video-bonus-pack/), that has a module to preview embed shortcodes. The only thing I've added is something that adds scripts from the embed code to the TinyMCE iframe (I'm sure there are major concerns...) and something that auto embeds urls. I've just taken the regex used in class-wp-embed.php, not sure what regex suits this situation best. The only problem is that it will embed *any* url. Somehow it should be checked whether the url is embedable, either when preprocessing the pasted content, or (even better I think) when the wpviews are created.
Other issues: whenever I paste/undo/redo the views are recreated which causes the content to flash.
Change History (104)
2 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.0
- Keywords needs-testing added