Cannot copy image when it is the first/only block in editor

Abierto
#2,016 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

No file or test is named in the issue. First reproduce the copy behavior in a BlockNote editor with an image as the first or only block, then trace the editor's select-all and copy handling. Done means Ctrl+A followed by Ctrl+C includes the image when it is the first or only block, while preserving copying of surrounding text.

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

Descripción

bug:P2

Description:
When an image is uploaded as the first (or only) block in the BlockNote editor, it cannot be copied using Ctrl+A and Ctrl+C.

Steps to Reproduce:

  1. Open BlockNote editor.
  2. Upload an image without adding any text above it.
  3. Press Ctrl+A to select all content.
  4. Press Ctrl+C to copy.

Actual Behavior:

  • Nothing is copied when the editor contains only an image.
  • If the editor contains an image as the first block and text below it, only the text is copied — the image is ignored.

Additional Notes:

  • Works fine when there is text before the image.
Lenguaje dominante
TypeScript
Estrellas
10.2k
Forks
772
Merge medio
3 d 11 h
PR fusionados (30 d)
17

Guía de contribución

Abrir la guía de contribución

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 TypeCellOS/BlockNote

Todos los issues de TypeCellOS/BlockNote

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.