In-App File Preview

Is there a way via WeWeb or plugin to preview various microsoft or google file types directly in app? For context, the purpose would be to allow people to view a document and make comments/ suggest revisions in a sidebar chat.

Hi @chadsmith,

Yes, all you have to do is copy/paste the embed code of your file in an HTML element:

Does that help?

Hi @Joyce ,

Could you maybe provide more details on how to add the embed code of a file in an HTML element?
Where do you get the embed code from? And how should it be added into the HTML element?

Thanks so much for your help!

Hi @sampannemans :wave:

That depends on what you’re trying to do. Usually, places that allow you to embed their video/file/GIF, whatever, will have a Share button.

When you click on it, they will usually have an Embed button. If you click on that, you’ll have the code to embed.

In WeWeb, you can simply paste the code you copied from whatever source you’re working with, inside the HTML box of the HTML element.

Here’s a video showing you with a YouTube video as an example (though for YouTube videos, you might want to use WeWeb’s native plugin): Video for Sam — Tella