Automattic / Automattic/isolated-block-editor

setUndoManager prevents access to existing history

Open
#136 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Collaboration bug
Dominant language
CSS
Stars
409
Forks
66
PR merge metrics
No merged PRs in 30d

Description

If you are editing some content and have built up an undo history, and then `setUndoManager` is called, it prevents access to the existing history.

This may occur, for example, on P2 where you can be creating a new post (collab is disabled) and a draft is saved. At this point, collab mode is enabled (the conditions for it are now true) and existing undo history is lost. Given the right set of circumstances this could result in data being lost.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the setUndoManager entry point and how it is called when collaboration mode changes. Reproduce the transition from editing with an existing undo history to enabling collaboration after a draft save. Done means the prior undo history remains accessible through that transition, with the data-loss scenario no longer occurring.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.