Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to render the content of a Confluence page including the Confluence page CSS and Javascript ?


Im trying to get the contents of the Confluence page to another site using the JSON-RPC renderContent method. The below code return me most of the contents but some javascript functions are missing and CSS so some Confluence plugins are not working (Expand macro,Info macro).

Do you know how to fix this? Or is there another method to load the Confluence javascript and CSS ?

Also we did notice a character "�" getting displayed when the html code has an empty paragraph

' <p> </p>' . Do you also know why this occurs ?

Is this an encoding issue ? I checked my Confluence configuration and the Encoding s set to UTF-8.

Below is the code to call "renderContent" method

			type: "POST",
			url: "",
			data: ' [ "AIPAS", 32538632, "" ] ',
			contentType: "application/json; charset=utf-8",
			dataType: "json",
			success: function(data){
			failure: function(errMsg){

2 answers

I have the same problem. I can not solve it.

I think you might be better off just doing a regular fetch of the page -- use the actual page URL:

    url : "/display/${space}/${mypage}?decorator=printable",
    success : function(result){
        do something with the result;

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence Cloud

Please tell us how you use Confluence space settings

👋 Hi there, a few of us at Atlassian would love to learn about how you use "space settings" functionality in Confluence. A facelift to the space settings is long overdue and we want to start with im...

126 views 5 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you