mdx-editor / mdx-editor/editor

[BUG] Undo/Redo navigation tool bar buttons not working after inserting code block

Open
#654 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
307
Avg merge
14h 22m
Merged PRs (30d)
5

Description

Describe the bug
I noticed an issue with the MDX Editor's tool bar.
Indeed, when we insert a code block, we are not able to undo or redo.
But, as soon as we remove the code block, it is possible to use the undo and redo buttons.

Expected behavior
After inserting a code block, we should be able to use undo/redo buttons.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the MDX Editor toolbar: insert a code block, then try the undo and redo buttons. Trace the code-block insertion and toolbar history flow, compare it with behavior after removing the block, and consider the work complete when both buttons work after insertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.