question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Readonly tooltip ("Cannot edit in read-only editor") doesn't show up

See original GitHub issue

monaco-editor version: 0.20.0 Browser: Chrome OS: macOS Mojave 10.15.6 Playground code that reproduces the issue:

var editor = monaco.editor.create(document.getElementById("container"), {
	readOnly: true,
});

I wanted to edit the tooltip message (#1742) but it doesn’t longer show up at all and I can’t find any mention in change log about it (works in VSCode)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MichelJanssoncommented, Apr 14, 2020

It looks like that is caused by this – https://github.com/microsoft/vscode/blob/265fb8d44e08006db32583781caf3b0367a364d2/src/vs/editor/browser/controller/textAreaHandler.ts#L132-L134

How do we get around this? It’s quite confusing now for a user to know that the editor is in read-only mode. No message, no “disabled look”. It just doesn’t work.

0reactions
hedietcommented, Jul 22, 2022

This seems to work now:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing read-only editor tooltip (monaco-alert) from the ...
I am trying to remove the 'monaco-alert' (the tooltip on the read-only-editor that shows 'can not edit in the read-only editor) from a ......
Read more >
How to fix "Cannot edit in read-only editor" in VSCode when ...
In this video we will learn How to fix " Cannot edit in read-only editor " in VSCode user input in C/C++ Program.Thank...
Read more >
36.56 How can I see if a file is read-only? - DVT Eclipse IDE
To enable read-only decorators for Navigator(1), Editor(2) and Refactoring Preview(3) go to: Window > Preferences > DVT and select the Show read-only ......
Read more >
Configuration - Editor.js
Editor.js needs a bit time to initialize. It is an asynchronous action so it won't block execution of your main script.
Read more >
How to Set the Read-only TextBox in React TextBox component
You can make the TextBox as read-only by setting the readonly attribute to the input element. Source. Preview.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found