Troubleshoot a text file that will not open for editing
Diagnose a missing Edit control or Editor unavailable toast using the 2 MiB limit, type detection, lock state, raw access, and upload rules.
Last reviewed
A missing Edit button usually reflects text eligibility, size, or the file’s lock mode. A loading failure appears differently in the two editor paths: plain text and Markdown use a full-page error screen, while other readable text uses the viewer overlay’s Editor unavailable toast.

Steps
- Confirm the file size in Details. Text preview and Edit use an exact ceiling of 2 × 1024 × 1024 bytes; a larger file must be downloaded and edited locally.
- Check the filename extension or MIME type. Unsupported binary formats do not receive the text editor even if their name contains readable characters.
- Check the file’s own lock mode. A
full_lockfile has no text Edit control even after a valid password unlock. - If Edit is present, select it once. For
.txt,.md, and.markdownfrom Files, a failed load stays on the full-page error screen with Try again. The overlay used by other readable text closes and reports Editor unavailable — Could not open the text editor. if its raw fetch or editor initialization fails. - Refresh the viewer and retry after restoring connectivity. If normal preview also fails, test Download; access, hidden-item, ancestor-lock, or file-not-found gates may be blocking the raw bytes.
- If opening succeeds but saving fails, treat that separately. The full-page Could not save this file or overlay Save failed message can reflect
upload_files, storage, extension policy, concurrency, destination, or locked-backup rules.
Full-lock rule. Unlocking grants byte access without changing the stored full_lock mode, and the editor always excludes that mode. If authorized, remove or change the full lock before reopening the viewer; otherwise download the file and edit it locally.
What the UI does not diagnose. The overlay’s Editor unavailable toast collapses fetch and initialization failures into one message; the full-page editor displays its load error and a retry control. Neither proves the file is corrupt. There is no editor cache-reset button.
Expected result
You either open the file in CodeMirror or identify the exact eligibility gate: unsupported text classification, more than 2 MiB, an unchanged full file lock, byte-access failure, or a transient editor-load problem.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.