How to embed a Google Doc to a Confluence page using the HTML macro


アトラシアン コミュニティをご利用ください。


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く


HTML マクロは既定では無効になっています

The HTML macro will only be available if it has been enabled by an administrator. Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks. More details on HTML macro can be reviewed in the following document:

To add a Google Doc to a Confluence page using the HTML macro perform the following:

In Google Drive/ Google Doc
  1. Navigate to Google Drive
  2. Edit the Doc
  3. Under File choose: Publish to the web
  4. Publish the document by clicking the Start Publishing under the Published content & settings section.
  5. Ensure that the Automatically republish when changes are made is enabled so that the document republishes every-time there is any change in the document.
  6. Click the Embed tab and copy the <iframe>.
In Confluence
  1. Ensure that the is in the Allowlist. This will allow Confluence to accept content from that domain.
  2. Once done, head over to a Confluence page and click Edit
  3. Add a HTML Macro
  4. Paste the <iframe> you've copied from step #6 above. 
  5. Edit the <iframe> to include the width and hight properties. Your <iframe> would look like something like the following: (you can adjust the hight and width, based on your needs.

    <iframe src="" width="1000" height="500"></iframe>
  6. The document will be displayed in Confluence. Updates to the document will also be displayed.


最終更新日 2021 年 8 月 11 日


Powered by Confluence and Scroll Viewport.