Skip to content

fix(toolbar): make formatting marks button opt-in via config#3325

Merged
caio-pizzol merged 1 commit into
stablefrom
caio/toolbar-formatting-marks-button-opt-in_stable
May 15, 2026
Merged

fix(toolbar): make formatting marks button opt-in via config#3325
caio-pizzol merged 1 commit into
stablefrom
caio/toolbar-formatting-marks-button-opt-in_stable

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

Cherry-pick of #3324 onto stable.

The pilcrow (¶) button is now opt-in instead of shipping in the default toolbar. Consumers that want it back set modules.toolbar.showFormattingMarksButton: true.

  • Default behavior change: the button disappears from the toolbar unless the flag is set. The underlying superdoc.toggleFormattingMarks() command and layoutEngineOptions.showFormattingMarks paint option are unchanged.
  • The new flag is intentionally distinct from layoutEngineOptions.showFormattingMarks to avoid name collision. The layout option controls whether marks render in the document; the toolbar flag only controls the button's presence.
  • Works in any mode; removed formattingMarks from the non-docx filter since the behavior is paint-side, not converter state.

Using fix: prefix to trigger a patch version bump on stable.

Verified: pnpm --filter @superdoc/super-editor test src/editors/v1/components/toolbar/ 91/91 passing; pnpm --filter superdoc... build clean.

@caio-pizzol caio-pizzol requested a review from a team as a code owner May 15, 2026 19:44
@github-actions
Copy link
Copy Markdown
Contributor

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@caio-pizzol caio-pizzol self-assigned this May 15, 2026
@caio-pizzol caio-pizzol merged commit e9e4d2d into stable May 15, 2026
73 checks passed
@caio-pizzol caio-pizzol deleted the caio/toolbar-formatting-marks-button-opt-in_stable branch May 15, 2026 21:04
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 15, 2026

🎉 This PR is included in superdoc-cli v0.10.1

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 15, 2026

🎉 This PR is included in superdoc-sdk v1.9.1

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 15, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.5.1

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 15, 2026

🎉 This PR is included in superdoc v1.33.1

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 15, 2026

🎉 This PR is included in @superdoc-dev/react v1.4.1

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 15, 2026

🎉 This PR is included in vscode-ext v2.5.1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants