nextcloud / nextcloud/notes

Notes just deleted an important document via "undo"

Open
#1,107 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug need to reproduce
Dominant language
JavaScript
Stars
738
Forks
162
Avg merge
6h 2m
Merged PRs (30d)
35

Description

I'm on latest RC. My notes folder is pointing to a directory with documents on an external storage . I opened a document via Notes app and was wondering why the undo arrow icon was highlighted, i thought maybe i pressed a key by accident and added a character somewhere, so i presssed the undo button, which cleared the entire content and there is no option to "redo".

This seems to be a visual bug in the Rich Text Editor only, if i switch to normal edit or preview mode, the content of the file is back. Switching back to rich text, the file is empty again.

Steps to reproduce

  1. Open existing document in rich text editor
  2. Press Undo button (which shouldn't be active since there were no changes in the first place)
  3. Lose entire content, editor window is empty with no possibility to restore content

Button shouldn't be active, or at least give possibility to redo

image

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 rich text editor using the listed steps, then inspect the rich text editor's undo-state handling. Verify the editor's initial undo button state and confirm that pressing it cannot hide or clear existing document content; ensure the document remains recoverable, including through redo if supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.