DEV Community

Osinachi Chukwujama
Osinachi Chukwujama

Posted on

Cannot Edit in Read-Only Editor

This message always gets to me: "Cannot edit in read only editor". The word editor should mean something that alters text.

The message would make more sense if the editor prevents edits to unauthorized users. But if the editor never allows edits, it shouldn't be called an editor anymore.

What do you think?

Discussion (2)

Collapse
Sloan, the sloth mascot
Comment deleted
Collapse
vicradon profile image
Osinachi Chukwujama Author

So, there are many situations where read-only editors are implemented. From file comparison on VsCode to the repl.it's editor.

I think editors are made read-only when editor properties like syntax highlighting are desired but the file should not be editable.