jacksingleton / hacker-slides

A simple app that combines Ace Editor and RevealJS. You can write markdown on the left, and preview your presentation on the right.
MIT License
662 stars 52 forks source link

add image upload functionality #15

Open jacksingleton opened 9 years ago

jacksingleton commented 9 years ago

At some point, Sandstorm will actually disallow embedding off-site resources via Content-Security-Policy since otherwise it is trivial to leak data out of a Sandstorm app, something we'd like to prevent. (Currently, this client-side sandbox is incomplete.) - Kenton

zarvox commented 9 years ago

We'll also need to modify reveal.js's CSS themes, since they currently load Google web fonts. Perhaps add a build step that pre-fetches the various font files and adjusts the .scss to use the locally-cached copies?

ndarilek commented 8 years ago

Would be nice to allow uploading of more than just images. It might be useful to upload video, audio, etc. Even if off-site embeds are allowed, I might want my presentation to be entirely self-contained so Sandstorm's own backup/restore mechanisms capture the whole thing.

jacksingleton commented 8 years ago

Agreed @ndarilek. Eventually I think Hacker Slides should integrate with a file upload app like Filedrop or Davros via the powerbox and allow any file to be embedded within a presentation.

JamborJan commented 8 years ago

Sounds excellent @jacksingleton . This would be the best solution for the sandstorm environment.

zeigerpuppy commented 8 years ago

For the moment, there's a hacky way to do this with Davros

  1. upload image to Davros
  2. view image in Davros and copy the link from “Download Original” eg: <img src="https://16290b47747ab678fb611bf4741ss.yoursever.net/remote.php/webdav/tutorials/images/voyager.jpg" width=300>
  3. include this link in Hackerslides, and size to fit