Confluence Rest api remove my attribute

Min April 18, 2019

Hi,

I'm newbie in confluence rest api.

I try create confluence page with my rest api. (via python)

I can create page, but my html body lost some attribute.

I send below html body

<p><img class="editor-inline-macro" src="/main/download/resources/confluence.extra.jira/jira-table.png" data-macro-name="jira" data-macro-id="f0367fd2-4333-4706-9228-0d1deca08788" data-macro-parameters="Blah Blah" data-macro-schema-version="1" data-mce-src="http://<mydomain>/main/download/resources/confluence.extra.jira/jira-table.png"/></p>

It have 5 attribute. (class, src, data-macro-name, data-macro-parameters, data-mce-src)

But, the confluence page only have 2 attribute. (class, src)

<img class="editor-inline-macro" src="/main/download/resources/confluence.extra.jira/jira-table.png">

 

I think that it work with white-list filtering. (Is it right?)

Can I use other attributes?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events