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?

Top comments (2)

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

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

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

Want to Create an Account?
Now it's your turn!
🗒 Share a tutorial
🤔 Reflect on your coding journey
❓ Ask a question

Create an account to join hundreds of thousands of DEV members on their journey.