Inspector Text panel omits Uppercase mark toggle (MARK_NAMES missing "uppercase")

Aperta
#3,849 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@svargas-dev ci sta già lavorando.

Dal 2/11/2026.

  • #3850 di @svargas-dev — aperta
  • #3858 di @Tyagiquamar — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

The bug is the MARK_NAMES array in dist/ui/index.mjs and dist/ui/index.cjs, which InspectorText uses to build its mark toggles. Open the InspectorText component and check how it reads that list, then compare it with the marks StarterKit registers. Done means the Inspector Text panel shows an Uppercase toggle. Pull request #3850 is already open against this issue, so review it before starting new work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

The Inspector's text panel does not show a toggle for the Uppercase mark, even though the mark is registered and functional elsewhere.

Context

  • @react-email/[email protected]
  • StarterKit includes the Uppercase mark (declared in dist/extensions/index.d.ts, with setUppercase/toggleUppercase/unsetUppercase commands)
  • BubbleMenuUppercase is exported from @react-email/editor/ui and works in the bubble menu

Problem

InspectorText renders mark toggles from a hardcoded MARK_NAMES list in dist/ui/index.mjs / dist/ui/index.cjs:

const MARK_NAMES = [
  "bold",
  "italic",
  "underline",
  "strike",
  "code",
];

"uppercase" is missing, so the inspector's Text panel never offers an uppercase toggle, even though the mark is part of the schema. The bubble menu (which uses BubbleMenuUppercase) works fine.

Expected

MARK_NAMES includes "uppercase" so the inspector matches the schema and the bubble menu.

Workaround

We currently patch MARK_NAMES in both dist/ui/index.mjs and dist/ui/index.cjs to add "uppercase".

Lingua principale
TypeScript
Stelle
19.9k
Fork
1.1k
Merge medio
1g 15h
PR unite (30g)
49

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di resend/react-email

Tutte le issue di resend/react-email

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.