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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

358 views 0 6
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