Skip to content

Add basic print action to text editor toolbar - #3215

Merged
AlexAndBear merged 8 commits into
mainfrom
feat/editor-basic-print-action
Aug 26, 2026
Merged

AlexAndBear merged 8 commits into
mainfrom
feat/editor-basic-print-action

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Description

This PR adds a print action to the text editor toolbar and provides a basic print pipeline that renders editor HTML into a print iframe.

The print logic is extracted into a dedicated helper and uses a separate print stylesheet.

Disclaimer: this is intentionally a very basic implementation, but we need to provide a print/PDF export option so users can print or export their content as PDF.

image image

Related Issue

  • Fixes N/A

How Has This Been Tested?

  • test environment: local development environment (macOS)
  • test case 1: pnpm test:unit --run packages/web-pkg/tests/unit/editor/composables/useEditorActions.spec.ts packages/web-pkg/tests/unit/editor/strategies/html.spec.ts packages/web-pkg/tests/unit/editor/strategies/markdown.spec.ts packages/web-pkg/tests/unit/editor/strategies/tiptapJson.spec.ts packages/web-pkg/tests/unit/editor/strategies/plainText.spec.ts
  • test case 2: manually verified print action opens print flow and includes table/task-list/code print styling

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the feat/editor-basic-print-action branch from e0dcfd4 to c40596e Compare August 26, 2026 11:57
@AlexAndBear AlexAndBear moved this from Qualification to In Progress in OpenCloud Team Board Aug 26, 2026

@kulmann kulmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

really, really helpful! especially for getting a PDF out of the editor. nice!

@AlexAndBear

Copy link
Copy Markdown
Member Author

really, really helpful! especially for getting a PDF out of the editor. nice!

🤗🎉🥳

@AlexAndBear
AlexAndBear merged commit 784d7ef into main Aug 26, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the feat/editor-basic-print-action branch August 26, 2026 16:34
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenCloud Team Board Aug 26, 2026
@openclouders openclouders mentioned this pull request Aug 26, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants