Skip to content

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

Open
mejo- wants to merge 3 commits into
mainfrom
fix/print_images
Open

fix(print): ensure all images are loaded before opening print dialog#2562
mejo- wants to merge 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- added 2 commits June 8, 2026 19:06
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>
@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
Signed-off-by: Jonas <jonas@freesources.org>
@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.

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

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Print/Export stops before rendering images in collected pages

1 participant