Some note types such as<a class="reference-link" href="../../Note%20Types/Text.md">Text</a>and<a class="reference-link" href="../../Note%20Types/Code.md">Code</a>notes in Trilium can be set to read-only. When a note is in read-only mode, it is presented to the user in a non-editable view, with the option to switch to editing mode if needed.
For optimization purposes, Trilium will automatically set very large notes to read-only. Displaying such lengthy notes in editing mode can slow down performance, especially when editing is unnecessary.
In addition, it's possible to change the number of characters at which the automatic read-only mode will trigger in<a class="reference-link" href="../UI%20Elements/Options.md">Options</a>by going to the options for<a class="reference-link" href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a>and<a class="reference-link" href="#root/_hidden/_options/_optionsCodeNotes">Code Notes</a>.
Via the<a class="reference-link" href="../UI%20Elements/Ribbon.md">Ribbon</a>, by going to the _Basic Properties_ tab and looking for the _Editable_ selection. The following options are possible:
The note will be always marked as read-only, regardless of its size. Nevertheless, it's still possible to temporarily edit the note if needed. This is generally useful for notes that are not prone to change.
When accessing a read-only note, it's possible to temporarily edit it by using the  button in the<a class="reference-link" href="../UI%20Elements/Floating%20buttons.md">Floating buttons</a>area.
* <a class="reference-link" href="../../Note%20Types/Mermaid%20Diagrams.md">Mermaid Diagrams</a>will hide the Mermaid source code and display the diagram preview in full-size. In this case, the read-only mode can be easily toggled on or off via a dedicated button in the<a class="reference-link" href="../UI%20Elements/Floating%20buttons.md">Floating buttons</a>area.