Replies: 6 comments 10 replies
-
With the same issue. |
Beta Was this translation helpful? Give feedback.
-
readOnlyMessage config don't work |
Beta Was this translation helpful? Give feedback.
-
https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.IEditorOptions.html#readOnlyMessage this code works for me to disable read-only tooltip message:
|
Beta Was this translation helpful? Give feedback.
-
Any update on this ticket?, not able to update the readOnlyMessage's value |
Beta Was this translation helpful? Give feedback.
-
@bthilak-altair This seems to do the job for me:- editorRef.current!.updateOptions({ In my case, there is no tooltip message when I tries to edit, just a down arrow appears. |
Beta Was this translation helpful? Give feedback.
-
Another option I haven't seen posted anywhere that would nuke the readonly message entirely would be to invoke dispose on the editor instance's editor.getContribution("editor.contrib.readOnlyMessageController")?.dispose(); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am try to create monaco-editor with these options, But I don't want to use the "Cannot edit in read-only editor" tips when user want to edit it. So I am try to use the "readOnlyMessage" to change the tips.

But I found my config is not work, Because the "readOnlyMessage" must be an "IMarkDownString" Object, Can tell me which attribute in "IMarkDownString" can change the tips
Beta Was this translation helpful? Give feedback.
All reactions