Typed or Copied Content Replaces Custom Alert Block Instead of Staying Within It
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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:
- Create a custom "alert" block as per the documentation.
- Type '-', '*', '+', '1.' or copy and paste a text segment within the "alert" block.
- 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
- Dominant language
- TypeScript
- Stars
- 10.2k
- Forks
- 772
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 17
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TypeCellOS/BlockNote
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
TypeCellOS/BlockNote#3098 ·
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TypeCellOS/BlockNote#3073 ·
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TypeCellOS/BlockNote#3072 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
TypeCellOS/BlockNote#2949 · 1 comment ·
-
a11y
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
TypeCellOS/BlockNote#2855 ·
All issues in TypeCellOS/BlockNote
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·