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)
comment:1 follow-up: ↓ 2 @wonderboymusic — 13 months ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.0
comment:62 in reply to: ↑ 59 @azaozz — 12 months ago
comment:63 @azaozz — 11 months ago
- Keywords needs-testing added