You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the editor is loaded and initialised with content then if, I give the editor focus and press Ctrl+Z, then the initial content is removed (presumably "undone" even though no changes were made.) This is confusing behaviour for a user if they have been making changes as they'll undo their own work but then see everything vanish.
Maybe the example should have had a line added to it. In the Editor.js file try adding this: quill.history.clear(); just after the initial content is set.
It should look like this just after Quill is instantiated
if (defaultValueRef.current) {
quill.setContents(defaultValueRef.current);
quill.history.clear();
}
If the editor is loaded and initialised with content then if, I give the editor focus and press Ctrl+Z, then the initial content is removed (presumably "undone" even though no changes were made.) This is confusing behaviour for a user if they have been making changes as they'll undo their own work but then see everything vanish.
Steps for Reproduction
Expected behavior:
The initial content of the editor should remain and not be removed when pressing Ctrl + Z.
Actual behavior:
The initial content is removed.
Platforms:
Windows 11 Version 23H2 (OS Build 22631.4460)
Firefox 133.0
Edge 131.0.2903.70
Version:
Run
Quill.version
to find out2.0.3 (at the time of accessing the playground pages)
The text was updated successfully, but these errors were encountered: