Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 747
Jack Avatar asked Apr 28 '17 09:04

Jack


2 Answers

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.
like image 148
2b77bee6-5445-4c77-b1eb-4df3e5 Avatar answered Oct 09 '22 07:10

2b77bee6-5445-4c77-b1eb-4df3e5


  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>
like image 35
Ashiqur Rahman Avatar answered Oct 09 '22 08:10

Ashiqur Rahman