Including html macro in custom macro or dynamically created page

Hi,

I am creating dynamic pages and try to include the html macro as body content of the page.

I try to include some content and an iframe. The content shows up in the page by the IFrame does not show up in the page that got created.

String data="<p><font color=\"blue\">IFRAME TO FOLLOW</font><iframe width=\"100%\" height=\"600px\" name=\"mypage\" src=\"http://www.xyz.com\"></iframe></p>";
mmyPage.setBodyAsString("<ac:macro ac:name=\"html\"><ac:rich-text-body>"+data+"</ac:rich-text-body></<ac:macro>");

When I try to add the same content upon editing a page, the Iframe shows up.
Can you provide a hint to fix this problem?

Thanks.

2 answers

0 votes
Ahmad Danial Atlassian Team Nov 05, 2013

Hey there, Veeralakshmi .

I noticed that it has been a while since you received any response here. Therefore, I would recommend you to contact the plugin vendor to get your query answered.

Hope this helps and good luck.

Look at the storage view of the created page and compare with doing it via editing. If necessary, attach it here.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

412 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you