I can only comment on the UI implementation. The specifics of coding are still a bit over my head.
It might be simply an additional icon in the top menu bar. Or it might be an added option in the triple dot expansion (e.g. Lock/Unlock note; Delete file; Copy obsidian url; …).
The toggle option should be easily found and easily implemented.
I appreciate the distinction. It is far more my interest to stop the accidental editing while inside Obsidian.
–
JJW