Including html macro in custom macro or dynamically created page


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=\"\"></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?


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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

118 views 0 4
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