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

Abierto
#3,849 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@svargas-dev ya está trabajando en esto.

Desde el 2/11/2026.

  • #3850 de @svargas-dev — abierto
  • #3858 de @Tyagiquamar — abierto

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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".

Lenguaje dominante
TypeScript
Estrellas
19.9k
Forks
1.1k
Merge medio
1 d 15 h
PR fusionados (30 d)
49

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de resend/react-email

Todos los issues de resend/react-email

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.