Search code examples
iframeconfluence

How to embed an iframe in Confluence page?


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?


Solution

    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>