Skip to content

docs(menu-config): clarify default font size behavior - #16

Open
cycleccc wants to merge 1 commit into
mainfrom
docs/clarify-default-font-size
Open

docs(menu-config): clarify default font size behavior#16
cycleccc wants to merge 1 commit into
mainfrom
docs/clarify-default-font-size

Conversation

@cycleccc

@cycleccc cycleccc commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • clarify that initial font/font size examples apply styles to initial content only
  • document that fontSizeList configures dropdown options, not the editor default font size
  • add CSS guidance for displaying editor content at 14px by default
  • regenerate full guide text files

Verification

  • pnpm docs:build

Summary by CodeRabbit

  • Documentation
    • Clarified how to initialize editor content styles, including font, size, and line-height.
    • Improved examples for passing HTML content in Vue and React editors.
    • Explained that font size dropdown options do not change the toolbar’s default font size behavior.
    • Added guidance for setting a 14px default display and ensuring exported HTML keeps the same font size.
    • Expanded table settings docs with an option for preserving adaptive table widths during import/export.

@changeset-bot

changeset-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 505ed1b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cursor

cursor Bot commented Jul 6, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 68ee98a1-d0b6-4813-9ddb-7bae88d2c831

📥 Commits

Reviewing files that changed from the base of the PR and between d92a756 and 505ed1b.

📒 Files selected for processing (4)
  • docs/en/guide/menu-config.md
  • docs/public/ai/en-guide-full.txt
  • docs/public/ai/zh-guide-full.txt
  • docs/zh/guide/menu-config.md

📝 Walkthrough

Walkthrough

Documentation updates to English and Chinese menu-config guides and their consolidated AI-generated full-doc mirrors. Changes replace outdated default-font-config guidance with "Initialize Content Styles" sections covering defaultContent/v-model/value usage, clarify fontSizeList and default font size semantics, and document a new widthExportMode table option (explicit/adaptive).

Changes

Menu Config Documentation Updates

Layer / File(s) Summary
Initialize content styles and defaultContent guidance
docs/en/guide/menu-config.md, docs/zh/guide/menu-config.md, docs/public/ai/en-guide-full.txt, docs/public/ai/zh-guide-full.txt
Replaces prior default-config/font-change sections with new guidance on providing initial font/font-size/line-height styles and using defaultContent, Vue v-model, and React value to pass HTML content.
fontSizeList and default font size clarification
docs/en/guide/menu-config.md, docs/zh/guide/menu-config.md, docs/public/ai/en-guide-full.txt, docs/public/ai/zh-guide-full.txt
Adds explanation that fontSizeList only configures dropdown options, defines toolbar "default font size" behavior, and documents CSS-based and fontSize: '14px' approaches for controlling displayed and exported font size.
widthExportMode table option documentation
docs/public/ai/en-guide-full.txt, docs/public/ai/zh-guide-full.txt
Documents a new widthExportMode option (explicit/adaptive) for insertTable, with example configuration updates.
Generated timestamp updates
docs/public/ai/en-guide-full.txt, docs/public/ai/zh-guide-full.txt
Updates the generated-at timestamps in the consolidated AI documentation files.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • wangeditor-next/docs#14: Both PRs add/clarify insertTable.widthExportMode documentation, including explicit vs adaptive and preserving width:auto.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main documentation change about default font size behavior in menu-config.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/clarify-default-font-size

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant