Skip to content

Readable or non editable by default

prog20901 edited this page Aug 1, 2019 · 1 revision

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

Clone this wiki locally