Created attachment 177284 [details]
Example document with sections editable in read-only documents too
Attached example document has two sections that have the "Editable in read-only document" section property set (see at the Format - Sections dialog).
When they are opened they can be edited, but this does not mark the document as changed.
Closing the document loses the text entered in the sections without a query about saving.
1, Download the attached document
2, Make sure to have Read-only set on it on the file system level.
3, Open the attached document, the "This document is open in read-only mode" infobar should appear.
4, Enter a few words in the yellow sections.
5, Close the document.
The document is closed without asking whether you want to save your changes.
Writer should be asking if you want to save your document.
Version: 220.127.116.11.alpha0+ / LibreOffice Community
Build ID: c13db6e792cc347ffff4585f23866f195651f21f
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
and older versions as well back to
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d5373
Created attachment 177285 [details]
Screenshot of the example document in current master after editing
That's an unusual concept... why would you want to allow editing in an actual read-only file? I can understand the idea of editing parts of a document that's mostly locked for editing, but this is different.
Anyway, confirmed using LO 18.104.22.168.alpha0+ (c13db6e792cc347ffff4585f23866f195651f21f) / Ubuntu.