Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translator: support v1 limited-page-width on server/dc #817

Merged
merged 2 commits into from
Jun 10, 2023

Conversation

jdknight
Copy link
Member

When adding support for confluence_full_width with a v1 editor, the styling used only worked gracefully on Confluence Cloud. For Confluence Server/DC versions, the applied layout does not enforce any maximum width on the contained content.

To improve this feature on Confluence Server/DC, we will use an alternative formatting for page content. Instead, we will opt to using a single div with a maximum width style applied. The maximum width chosen is based on the observed default max-width for macros when using the WYSIWYG editor.

When adding support for `confluence_full_width` with a v1 editor, the
styling used only worked gracefully on Confluence Cloud. For Confluence
Server/DC versions, the applied layout does not enforce any maximum
width on the contained content.

To improve this feature on Confluence Server/DC, we will use an
alternative formatting for page content. Instead, we will opt to using
a single div with a maximum width style applied. The maximum width
chosen is based on the observed default max-width for macros when using
the WYSIWYG editor.

Signed-off-by: James Knight <james.d.knight@live.com>
With the Confluence v1 "full width" support, there is now different
outputs based on if the target is a Cloud instance or a Server/DC
instance. Updating unit testing to check/verify both of these scenarios.

Signed-off-by: James Knight <james.d.knight@live.com>
@jdknight jdknight added this to the 2.2 milestone Jun 10, 2023
@jdknight jdknight merged commit a32259b into main Jun 10, 2023
26 checks passed
@jdknight jdknight deleted the support-v1-limited-page-width-on-server branch June 10, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant