The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

confluence should support integrating its editor in a iframe.

timmyaditya
January 4, 2023

Hi Confluence Team,

As we know the confluence Editor is feature rich and heavily engineered. Hence they should also provide support to use it in an iframe.

As there is a rest API available for editing a confluence page, but there are a lot of limitations such as attachments are not supported while adding through rest API, custom css are also not supported, and the many more.

Although it would have been great if we could have just provided page id and the page content would be directly available in a iframe, with all content and confluence rich features.

Let me know your thoughts upon this, as it would be quite easy for you to develop this feature, creating a great impact on the developer community.

Thanks,

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
timmyaditya
January 5, 2023

Hi,

I am trying to show/edit the confluence page via rest API. But confluence doesn't provide exact page content via their API, which results in UI distortion when I display/publish the content.

Hence I believe confluence should make it easy for us to integrate the editor, upon some sort of authorization.

Also Is there any API from where I can get the exact HTML Content?

I tried 

for fetching content:-

/wiki/rest/api/content/{pageId}?expand=body.storage, body.editor,  body.view, body.export_view,body.styled_view,body.atlas_doc_format,body.editor2,body.anonymous_export_view,body.dynamic

but non of the above gives the exact html same as that of confluence.

for publishing content:-

/wiki/rest/api/content/{pageId}

{
    "version":{
        "number":3
    },
    "type": "page",
    "id": "9240633",
    "title": "content by lighting keyboard with that title",
    "body":{
        "editor"[as well as "storage"]:{
            "value"content got from fetch content api along with some of my updates",
            "representation": "storage"
        }
    }
}
0 votes
Nic Brough -Adaptavist-
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 Champions.
January 4, 2023

Welcome to the Atlassian Community!

Why?  What problem would this solve?

TAGS
AUG Leaders

Atlassian Community Events