Skip to content

Commit

Permalink
bugfix: Remove forced default width, forced full-width without editor…
Browse files Browse the repository at this point in the history
… config kovetskiy#175
  • Loading branch information
jay-stillman committed Feb 6, 2023
1 parent b82e18f commit 4d16a1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/confluence/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,16 +555,16 @@ func (api *API) UpdatePage(
},
"metadata": map[string]interface{}{
"labels": labels,
// The Confluence API randomly sets page width for some reason:
// https://community.developer.atlassian.com/t/confluence-rest-api-create-content-at-random-width/57001

// This is a workaround to compensate for that bug. It forces the page to be created
// with the default appearance, which is "fixed" (not full-width).
// Fix to set full-width as has changed on Confluence APIs again.
// https://jira.atlassian.com/browse/CONFCLOUD-65447
//
"properties": map[string]interface{}{
"content-appearance-published": map[string]interface{}{
"value": "default",
"value": "full-width",
},
},
// content-appearance-draft should not be set as this is impacted by
// the user editor default configurations - which caused the sporadic published widths.
},
}

Expand Down

0 comments on commit 4d16a1f

Please sign in to comment.