11

I want to embed an iframe in a Confluence page, e.g. Google Calendar.

I insert the iframe code in Confluence page, it should show the calendar as follows: enter image description here

But it just display the text of code as follows:

<iframe src="https://calendar.google.com/calendar/embed?src=3g3ie767f4ji0e72icgtfjg%40group.calendar.google.com&amp;c" style="border: 0" width="800" height="600" frameborder="0" scrolling="auto"></iframe>

How to embed an iframe in Confluence page?

Jack
  • 347
  • 1
  • 2
  • 22

3 Answers3

6
  1. Log in as your Confluence Admin, go to manage add-ons
  2. Enable all the modules of the Confluence HTML Macros
  3. Insert the Include HTML Macro when you are creating/editing a page.

    a) Go To Insert More Content > Other macros

    b) Search for HTML macro

    c) Paste the following code inside the macro

  4. Save the page

     <iframe src="https://calendar.google.com/calendar/embed?src=3g3ie767f4ji0e72icgtfjg%40group.calendar.google.com&amp;c" noborder="0" width="830" 
     height="800" scrolling="yes" seamless></iframe>
 <iframe src="https://calendar.google.com/calendar/embed?src=3g3ie767f4ji0e72icgtfjg%40group.calendar.google.com&amp;c" noborder="0" width="830" 
 height="800" scrolling="yes" seamless></iframe>
Ashiqur Rahman
  • 425
  • 7
  • 21
  • Hi @Ashiqur Rahman, thanks for your reply. However, I cannot find the HTML macro, my Confluence is v5.9.11. Which version do you use? – Jack Apr 29 '17 at 13:59
  • then u need to install it first ... and don't forget to accept my answer – Ashiqur Rahman Apr 29 '17 at 18:25
  • 1
    Hi @Ashiqur Rahman, do you know where the HTML macro is? There seems no the macro in the Atlassian marketplace. How did you have the HTML macro? Is it installed by default? – Jack May 01 '17 at 01:47
  • Couldn't find “Manage add-ons” on the current Conflunece Cloud (version 1000.0.0-2de308a3ab52). The other answer worked (search for "iframe macro") – Ilias Bartolini Jul 21 '20 at 11:46
  • @llias Bartolini ... It's for older version... Can't help you with the new version sorry – Ashiqur Rahman Jul 21 '20 at 11:51
3

When adding a macro I did the following:

  1. "Other Macros"
  2. Search for "iframe"
  3. Select "Iframe" macro
  4. Enter only the iframe url, and any other required settings.
0

If you are using Confluence Cloud, the other answers won't work. That is because HTML macro is not included in Confluence cloud version by default.

There are addons in Atlassian Marketplace that enable this feature. You can check out:

HTML Macro for Confluence

This addon allows embedding any external web contents as iframe.

chhantyal
  • 11,874
  • 7
  • 51
  • 77