1 Readable or non editable by default
prog20901 edited this page 2019-08-01 15:57:14 +05:30

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