Embedding a Google Document

Hi all,

Just a quick one… hopefully!

I’m looking to embed a Google Document into a post, as we use our forums to publish policies and receive feedback on them.

I have found a plugin, called “Google docs Onebox for Discourse” which will do what we need, however it doesn’t work when installing. I’m also a bit confused as to if Onebox is now in the installation for Discourse?

When pasting the link into the post, it shows like this:

When what we need is something like this:

(Images are not my own)

Is there any advice for this? :slight_smile:

Thanks,
James.

1 Like

I believe you need to whitelist https://docs.google.com in your allowed iframes admin setting, and then place your link in the post something like this:

<iframe src="https://docs.google.com/document/d/1xM9RtF1wp1m50rLcrZ0RBV2OV1JxweyRhJQnAYAaDf8/edit?embedded=true" width="300" height="300" frameborder="0" marginheight="0" marginwidth="0">
</iframe>

Somebody may have more experience though, and can add some extra detail. :slightly_smiling_face:

6 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.