mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-30 13:59:52 +00:00
Created Readable or non-editable by default (markdown)
parent
0a1e8a7140
commit
6a9cdecba8
1 changed files with 14 additions and 0 deletions
14
Readable-or-non-editable-by-default.md
Normal file
14
Readable-or-non-editable-by-default.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
There already is a button in the main menu for that. Plus you can just press „Escape“ while in the note text edit to turn the read only mode" on.
|
||||
|
||||
You can create a script that automatically changes to read-only when you open a note:
|
||||
|
||||
import QtQml 2.0
|
||||
import QOwnNotesTypes 1.0
|
||||
|
||||
QtObject {
|
||||
function noteOpenedHook(note) {
|
||||
script.triggerMenuAction("actionAllow_note_editing", 0);
|
||||
}
|
||||
}
|
||||
|
||||
http://docs.qownnotes.org/en/develop/scripting/README.html#triggering-a-menu-action
|
Loading…
Add table
Add a link
Reference in a new issue