Pasting text using cmd-V into the web version of Notes does not trigger the "changed" flag.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 738
- Forks
- 162
- Avg merge
- 6h 2m
- Merged PRs (30d)
- 35
Description
I started using notes by copying text from my previous note-taking app into the web-version of nextcloud notes. I noticed that the text stayed in the browser, but the .md files on the server stayed empty. It took me a while to find out that the "changed" flag was not triggered by a paste, and therefore the new version is not pushed to the server. It stayed in the browser memory, so I could save all my lost notes by going back to them on the same client.
Steps to reproduce
- Open Notes app in the web interface
- Press "New note" button
- Paste some text into the text window without actually typing any text into the field.
- Note that the "green light" next to the checkmark never lights up
- Type "^Z" and notice that the paste is not undone.
- Note that the file stays empty on the server.
- Type something into the note and remove it again. The green light shows and after a little while the file on the server is updated with the content.
Expected behaviour
The "content has changed" mark should be triggered when text is pasted into the note.
Actual behaviour
The "content has changed" mark does not trigger when text is pasted into the note
Screenshots
Don't see what screenshots I could make to illustrate this issue.
Server
- Notes app version: 4.11.0
- Nextcloud version: 30.0.8
- OS: Linux raspberrypi 6.12.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.20-1+rpt1~bpo12+1 (2025-03-19) aarch64 GNU/Linux
- Web server: AIO?
- PHP version: AIO?
- Database: AIO?
Nextcloud configuration: All-in-one installation.
Client
- Browser (incl. version): Firefox 137.0.0.1 (aarch64)
- OS: MacOS Sequoia 15.3.2
Log files
Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.
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 reproducing the paste-only workflow in the web Notes editor and inspect the entry points handling paste, undo, and the content-changed indicator. Confirm the fix by verifying that pasted text marks the note changed and is persisted to the server without requiring extra typing.
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
- 45/100