Issue Description
Accidental deletion of embedded media (images, videos, PDFs) in any block/sub-block – including during active editing – causes permanent, unrecoverable loss. Crucially:
-
Ctrl+Z
DOES NOT restore deleted media, even immediately after removal -
Occurs with both existing and newly pasted/uploaded media
-
Highest risk during cursor navigation near media elements
Proposed Solution
Implement a non-bypassable confirmation dialog for ALL media deletions:
-
Triggers:
-
Backspace
/Delete
keys targeting media -
Right-click → “Delete” on media
-
Applies in ALL editing modes (new blocks, nested blocks, mid-sentence)
-
-
Popup Text:
Permanently delete this media? (Cannot be undone with Ctrl+Z) [ Cancel ] [ Delete ]
-
Key Coverage:
-
Media in unsaved/newly created blocks
-
Sub-block media (indented content)
-
Bulk media selection deletions
-
-
Setting:
Settings > Editor > "Always confirm media deletion"
(enabled by default)
Why This Matters
-
No Undo Safety Net: Unlike text, deleted media cannot be recovered via undo history
-
Critical Data Preservation: Prevents irreversible loss of research/assets
-
Reduced Anxiety: Eliminates panic from “point-of-no-return” actions
Technical Notes
-
Detection: Flag deletions targeting
![]()
or{{embed }}
syntax -
Undo Stack Bypass: Media deletion operates outside standard undo/redo flow
Sorry if I wrote something wrong, I compiled this post using a neural network. I don’t speak English.