Typed or Copied Content Replaces Custom Alert Block Instead of Staying Within It

Đang mở
#771 3 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
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with the linked Custom Blocks documentation and reproduce the issue in a custom alert block. Inspect the editor behavior for typed list markers and pasted content within that block. Done means typing or pasting keeps the content inside the alert block instead of replacing it.

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

Mô tả

bug:P3

Description:
I have customized a block type "alert" followed by a custom block on the BlockNote homepage.
However, every time I type '-', '*', '+', '1.' or copy a text segment within the same editor, it replaces the "alert" block instead of placing the content within it.

Steps to Reproduce:

  1. Create a custom "alert" block as per the documentation.
  2. Type '-', '*', '+', '1.' or copy and paste a text segment within the "alert" block.
  3. Observe that the content replaces the "alert" block instead of staying within it.

Expected Behavior:
The typed or copied content should remain within the "alert" block instead of replacing it.

Actual Behavior:
The "alert" block is replaced by the typed or copied content.

https://github.com/TypeCellOS/BlockNote/assets/37234239/b9ebe406-f2de-4b79-b3c7-d7b8d456ced9

Link to Documentation:
BlockNote Custom Schemas - Custom Blocks

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.