Embedd presentation from slideshare.net and speakerdeck.com in posts
I think it wouldn't be too difficult to modify the youtube plugin for example to handle their shortcodes:
Here's the regex, if anybody wants to do it:
'[slideshare id=35472022&doc=afghanistandogsofwar-140604052033-phpapp01]'.replace(/[slideshare id=([\s\S]*?)&[\s\S]*?]/g, '<iframe src="http://www.slideshare.net/slideshow/embed_code/$1" width="427" height="356" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe>')
@psychobunny On it like a rocket to the moooooooooooooooooooooooooooon.
I did take a look at this & the other one, but found that the embed code and the url were different. Which is always good. /sarcasm
haha yeah, seemingly everything besides id isn't even used
if anybody wants to do it
I'll be honest, I was really hoping ''anybody" = you
npm install nodebb-plugin-slideshare
Any idea on the speakerdeck one? oembed could be a possibility.
@marcos2 All done!