Skip to content

feat(Editor): allow disabling starter kit for plain text#271

Merged
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-76d613c
Jul 10, 2026
Merged

feat(Editor): allow disabling starter kit for plain text#271
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-76d613c

Conversation

@IgorShevchik

Copy link
Copy Markdown
Collaborator

Syncs upstream nuxt/ui commit 76d613cfeat(Editor): allow disabling starter kit for plain text (#6713).

What

Editor's starterKit prop now accepts boolean | Partial<StarterKitOptions> (default true). Passing false gives a plain-text editor:

  • the starterKit computed builds a plainText override that disables every formatting extension (bold/italic/heading/lists/code/blockquote/link/hr/underline/strike/…) while keeping the essential nodes (document, paragraph, text, hard break, history);
  • the Code / HorizontalRule .extend(...) blocks are gated behind props.starterKit !== false.

b24ui's Editor.vue matched upstream's structure, so the runtime changes applied verbatim. Docs (editor.md) gain a ::tip explaining plain-text mode.

Deviation

b24ui's dropcursor color is var(--ui-color-accent-main-primary) (fork token), not upstream's var(--ui-primary) — preserved in the rewritten computed's defu defaults.

Verify (CI=true)

dev:prepare · lint · typecheck · test · build — all green. The default starterKit: true reproduces the previous config exactly (defu of {} yields the same object; the !== false guards stay truthy), so there's no behavior change and no snapshot churn. Suite 5477 passed / 6 skipped.

Ledger: cursor advanced to 76d613c; previous entry 7e6d8b0 reconciled to PR #270.

🤖 Generated with Claude Code


Generated by Claude Code

The starterKit prop now accepts boolean | Partial<StarterKitOptions>
(default true). Passing false yields a plain-text editor: all formatting
extensions are disabled while the essential nodes remain, and the Code /
HorizontalRule extend blocks are gated behind starterKit !== false.
b24ui's dropcursor color token is preserved.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
@IgorShevchik IgorShevchik merged commit 3ef8d01 into main Jul 10, 2026
1 check passed
@IgorShevchik IgorShevchik deleted the sync/nuxt-76d613c branch July 10, 2026 19:08
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.

2 participants