wordpress-mobile / wordpress-mobile/GutenbergKit
Prevent the default block appender inserting duplicative default blocks
Open
Nobody has claimed this yet.
[Type] Enhancement
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 6
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
What problem does this address?
Default block appender creates duplicate paragraph blocks.
https://github.com/user-attachments/assets/18ccdeef-8a29-41b7-9d9f-11f73a0cc42d
What is your proposed solution?
Match the behavior with the Notes app:
- If the last block is a paragraph, focus it and put the cursor at the end
- If the last block is something else, insert an empty paragraph block and focus on it
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.
Research direction
Start by locating the default block appender implementation and reproduce the duplicate paragraph behavior described in the issue and attached video. Verify that an existing final paragraph is focused with the cursor at its end, while a non-paragraph final block causes one empty paragraph to be inserted and focused.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100