fix(popup_editor): respect user's read-only choice (closes #7715)

This commit is contained in:
Elian Doran
2025-11-25 08:19:48 +02:00
parent 3afe6df9f2
commit 24361ccd97
17 changed files with 241 additions and 119 deletions

View File

@@ -3330,35 +3330,6 @@
"dataFileName": "Zoom.md",
"attachments": []
},
{
"isClone": false,
"noteId": "ZjLYv08Rp3qC",
"notePath": [
"pOsGYCXsbNQG",
"gh7bpGYxajRS",
"Vc8PjrjAGuOp",
"ZjLYv08Rp3qC"
],
"title": "Quick edit",
"notePosition": 200,
"prefix": null,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [],
"format": "markdown",
"dataFileName": "Quick edit.md",
"attachments": [
{
"attachmentId": "EBOLwVGrA8bv",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "Quick edit_image.png"
}
]
},
{
"isClone": false,
"noteId": "lgKX7r3aL30x",
@@ -4886,7 +4857,7 @@
]
},
{
"isClone": true,
"isClone": false,
"noteId": "ZjLYv08Rp3qC",
"notePath": [
"pOsGYCXsbNQG",
@@ -4895,11 +4866,130 @@
"ZjLYv08Rp3qC"
],
"title": "Quick edit",
"notePosition": 90,
"prefix": null,
"dataFileName": "Quick edit.clone.md",
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "label",
"name": "iconClass",
"value": "bx bx-edit",
"isInheritable": false,
"position": 30
},
{
"type": "label",
"name": "shareAlias",
"value": "quick-edit",
"isInheritable": false,
"position": 40
},
{
"type": "relation",
"name": "internalLink",
"value": "oPVyFC7WL2Lp",
"isInheritable": false,
"position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "3seOhtN8uLIY",
"isInheritable": false,
"position": 60
},
{
"type": "relation",
"name": "internalLink",
"value": "GTwFsgaA0lCt",
"isInheritable": false,
"position": 70
},
{
"type": "relation",
"name": "internalLink",
"value": "0ESUbbAxVnoK",
"isInheritable": false,
"position": 80
},
{
"type": "relation",
"name": "internalLink",
"value": "iPIMuisry3hd",
"isInheritable": false,
"position": 90
},
{
"type": "relation",
"name": "internalLink",
"value": "nRhnJkTT8cPs",
"isInheritable": false,
"position": 100
},
{
"type": "relation",
"name": "internalLink",
"value": "OFXdgB2nNk1F",
"isInheritable": false,
"position": 110
},
{
"type": "relation",
"name": "internalLink",
"value": "hrZ1D00cLbal",
"isInheritable": false,
"position": 120
},
{
"type": "relation",
"name": "internalLink",
"value": "lgKX7r3aL30x",
"isInheritable": false,
"position": 130
},
{
"type": "relation",
"name": "internalLink",
"value": "xWbu3jpNWapp",
"isInheritable": false,
"position": 140
},
{
"type": "relation",
"name": "internalLink",
"value": "l0tKav7yLHGF",
"isInheritable": false,
"position": 150
},
{
"type": "relation",
"name": "internalLink",
"value": "81SGnPGMk7Xc",
"isInheritable": false,
"position": 160
},
{
"type": "relation",
"name": "internalLink",
"value": "CoFPLs3dRlXc",
"isInheritable": false,
"position": 170
}
],
"format": "markdown",
"isExpanded": false
"dataFileName": "Quick edit.md",
"attachments": [
{
"attachmentId": "EBOLwVGrA8bv",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "Quick edit_image.png"
}
]
},
{
"isClone": false,

View File

@@ -1,2 +0,0 @@
# Quick edit
This is a clone of a note. Go to its [primary location](../UI%20Elements/Quick%20edit.md).

View File

@@ -3,7 +3,7 @@
_Quick edit_ provides an alternative to the standard tab-based navigation and editing.
Instead of clicking on a note which switches the <a class="reference-link" href="Note%20Tree.md">Note Tree</a> to the newly selected note, or navigating between two different <a class="reference-link" href="Tabs.md">Tabs</a>, the _Quick edit_ feature opens as a popup window that can be easily dismissed.
Instead of clicking on a note which switches the <a class="reference-link" href="../UI%20Elements/Note%20Tree.md">Note Tree</a> to the newly selected note, or navigating between two different <a class="reference-link" href="../UI%20Elements/Tabs.md">Tabs</a>, the _Quick edit_ feature opens as a popup window that can be easily dismissed.
This feature is also well integrated with <a class="reference-link" href="../../Collections.md">Collections</a> such as the calendar view, which makes it easy to edit entries without having to go back and forth between the child note and the calendar.
@@ -18,16 +18,24 @@ This feature is also well integrated with <a class="reference-link" href="../..
## Accessing the quick edit
* From the <a class="reference-link" href="Note%20Tree.md">Note Tree</a>:
* From the <a class="reference-link" href="../UI%20Elements/Note%20Tree.md">Note Tree</a>:
* Right click on a note and select _Quick edit_.
* or, press <kbd>Ctrl</kbd>+<kbd>Right click</kbd> on a note.
* On <a class="reference-link" href="../../Note%20Types/Text/Links/Internal%20(reference)%20links.md">Internal (reference) links</a>:
* Right click and select _Quick edit_.
* or, press <kbd>Ctrl</kbd>+<kbd>Right click</kbd> on the link.
* On a <a class="reference-link" href="Note%20Tooltip.md">Note Tooltip</a>, press the quick edit icon.
* On a <a class="reference-link" href="../UI%20Elements/Note%20Tooltip.md">Note Tooltip</a>, press the quick edit icon.
* In <a class="reference-link" href="../../Collections.md">Collections</a>:
* For <a class="reference-link" href="../../Collections/Calendar.md">Calendar View</a>:
* For <a class="reference-link" href="../../Collections/Calendar.md">Calendar</a>:
* Clicking on an event will open that event for quick editing.
* If the calendar is for the <a class="reference-link" href="../../Advanced%20Usage/Advanced%20Showcases/Day%20Notes.md">Day Notes</a> root, clicking on the day number will open the popup for that day note.
* For <a class="reference-link" href="../../Collections/Geo%20Map.md">Geo Map View</a>:
* Clicking on a marker will open that marker, but only if the map is in read-only mode.
* For <a class="reference-link" href="../../Collections/Geo%20Map.md">Geo Map</a>:
* Clicking on a marker will open that marker, but only if the map is in read-only mode.
## Handling of read-only notes
The Quick edit feature has a unique behavior for <a class="reference-link" href="../Notes/Read-Only%20Notes.md">Read-Only Notes</a>:
* If the note is read-only due to performance reasons (auto read-only), then the note is made editable for quick editing.
* If the note has been manually set to read-only, then the note is read-only to prevent accidental change.
* In this case, the note can still be edited by on-screen instructions.

View File

@@ -10,7 +10,7 @@ The following information is displayed:
* Clicking on the title will open the note in the current tab.
* Holding <kbd>Ctrl</kbd> pressed while clicking the title will open in a new tab instead of the current one.
* A snippet of the content will be displayed as well.
* A button to [quickly edit](Quick%20edit.md) the note in a popup.
* A button to [quickly edit](../Navigation/Quick%20edit.md) the note in a popup.
The tooltip can be found in multiple places, including:

View File

@@ -4,7 +4,7 @@ The <a class="reference-link" href="../Note%20Tree.md">Note Tree</a> comes wit
* Opening notes:
* <kbd>Click</kbd> to open the note in the current tab.
* <kbd>Ctrl</kbd>+<kbd>Click</kbd> or <kbd>Middle click</kbd> to open the note in a new tab.
* <kbd>Ctrl</kbd>+<kbd>Right click</kbd> to open the note in <a class="reference-link" href="../Quick%20edit.md">Quick edit</a>.
* <kbd>Ctrl</kbd>+<kbd>Right click</kbd> to open the note in <a class="reference-link" href="../../Navigation/Quick%20edit.md">Quick edit</a>.
* Navigation within the tree:
* <kbd>Up</kbd> and <kbd>Down</kbd> to navigate between notes.
* <kbd>Left</kbd> to collapse a note, or <kbd>Right</kbd> to expand it.

View File

@@ -31,7 +31,7 @@ Unlike other Collection view types, the Calendar view also allows some kind of i
* Hovering the mouse over an event will display information about the note.
![](7_Calendar_image.png)
* Left clicking the event will open a <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Quick%20edit.md">Quick edit</a> to edit the note in a popup while allowing easy return to the calendar by just dismissing the popup.
* Left clicking the event will open a <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Quick%20edit.md">Quick edit</a> to edit the note in a popup while allowing easy return to the calendar by just dismissing the popup.
* Middle clicking will open the note in a new tab.
* Right click will offer more options including opening the note in a new split or window.
* Drag and drop an event on the calendar to move it to another day.

View File

@@ -75,7 +75,7 @@ If moved by mistake, there is currently no way to undo the change. If the mouse
* Clicking on the note title in the tooltip will navigate to the note in the current view.
* Middle-clicking the marker will open the note in a new tab.
* Right-clicking the marker will open a contextual menu (as described below).
* If the map is in read-only mode, clicking on a marker will open a <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Quick%20edit.md">Quick edit</a> popup for the corresponding note.
* If the map is in read-only mode, clicking on a marker will open a <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Quick%20edit.md">Quick edit</a> popup for the corresponding note.
## Contextual menu

View File

@@ -4,7 +4,7 @@ This section presents the most important changes by version. For a full set of c
* v0.97.0:
* Books are now <a class="reference-link" href="Collections.md">Collections</a>.
* <a class="reference-link" href="Collections/Table.md">Table View</a> is a new collection type displaying notes and attributes in an editable grid.
* <a class="reference-link" href="Basic%20Concepts%20and%20Features/UI%20Elements/Quick%20edit.md">Quick edit</a> is introduced, adding a new way to edit notes in a popup instead of opening a new tab. It also integrates well with <a class="reference-link" href="Collections.md">Collections</a>.
* <a class="reference-link" href="Basic%20Concepts%20and%20Features/Navigation/Quick%20edit.md">Quick edit</a> is introduced, adding a new way to edit notes in a popup instead of opening a new tab. It also integrates well with <a class="reference-link" href="Collections.md">Collections</a>.
* v0.96.0:
* <a class="reference-link" href="Note%20Types/Text.md">Text</a> gain premium features thanks to a collaboration with the CKEditor team:
* <a class="reference-link" href="Note%20Types/Text/Premium%20features/Slash%20Commands.md">Slash Commands</a>