bugfix: Remove forced default width, forced full-width without editor config #175

This commit is contained in:
Jay Stillman 2023-02-06 01:18:34 -05:00
parent b82e18f8b8
commit 4d16a1f606

View File

@ -555,16 +555,16 @@ func (api *API) UpdatePage(
}, },
"metadata": map[string]interface{}{ "metadata": map[string]interface{}{
"labels": labels, "labels": labels,
// The Confluence API randomly sets page width for some reason: // Fix to set full-width as has changed on Confluence APIs again.
// https://community.developer.atlassian.com/t/confluence-rest-api-create-content-at-random-width/57001 // https://jira.atlassian.com/browse/CONFCLOUD-65447
//
// 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).
"properties": map[string]interface{}{ "properties": map[string]interface{}{
"content-appearance-published": 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.
}, },
} }