Created Readable or non-editable by default (markdown)

prog20901 2019-08-01 15:57:14 +05:30
parent 0a1e8a7140
commit 6a9cdecba8

@ -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