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

This widget could not be displayed.
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.

This widget could not be displayed.

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

510 views 3 18
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