Skip to content

Add basic print action to text editor toolbar - #3215

Open
AlexAndBear wants to merge 2 commits into
mainfrom
feat/editor-basic-print-action
Open

Add basic print action to text editor toolbar#3215
AlexAndBear wants to merge 2 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Qualification

Development

Successfully merging this pull request may close these issues.

1 participant