Including html macro in custom macro or dynamically created page

Veeralakshmi Jeyavelu August 16, 2012

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
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2013

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

0 votes
AhmadDanial
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events