Skip to content

fix(print): ensure all images are loaded before opening print dialog#2562

Merged
max-nextcloud merged 3 commits into
mainfrom
fix/print_images
Jun 18, 2026
Merged

fix(print): ensure all images are loaded before opening print dialog#2562
max-nextcloud merged 3 commits into
mainfrom
fix/print_images

Conversation

@mejo-

@mejo- mejo- commented Jun 8, 2026

Copy link
Copy Markdown
Member

Fixes: #2553

Pass noLazyImages to createEditor when loading reader in print view, so images are fetched straight away and not lazy-loaded.

Requires nextcloud/text#8719

Also await Text's onLoaded callback in setupReader to await the async component loading of MarkdownContentEditor.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

🤖 AI (if applicable)

  • The content of this PR was partly generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

@mejo- mejo- self-assigned this Jun 8, 2026
@mejo- mejo- added the bug Something isn't working label Jun 8, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jun 8, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Jun 8, 2026
@mejo-
mejo- force-pushed the fix/print_images branch from 4739bb9 to 7bfa71b Compare June 8, 2026 18:04
@mejo-

mejo- commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

The new Playwright test will only succeed after nextcloud/text#8719 (and the corresponding backport PRs) got merged.

@max-nextcloud max-nextcloud self-assigned this Jun 13, 2026
mejo- added 3 commits June 13, 2026 19:43
Fixes: #2553

Pass `noLazyImages` to createEditor when loading reader in print view,
so images are fetched straight away and not lazy-loaded.

Requires nextcloud/text#8719

Also await Text's `onLoaded` callback in setupReader to await the async
component loading of MarkdownContentEditor.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>

@max-nextcloud max-nextcloud left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this. Code looks good.

Tests are a bit verbose handing user and page to many function calls. But figuring out something nice and consistent is for another time i guess.

@max-nextcloud
max-nextcloud merged commit 8b75450 into main Jun 18, 2026
62 checks passed
@max-nextcloud
max-nextcloud deleted the fix/print_images branch June 18, 2026 12:32
@github-project-automation github-project-automation Bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Print/Export stops before rendering images in collected pages

2 participants