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

Đang mở
#2,016 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
10.2k
Fork
772
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
17

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TypeCellOS/BlockNote

Tất cả issue của TypeCellOS/BlockNote

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.