Removing the tooltip on the read-only editor that says 'cannot edit in read-only editor'
See original GitHub issueHi, I tried to remove the tooltip that says 'cannot edit in a read-only editor using CSS. But, it seems that the CSS although applied is not working.
Given below is the screenshot of the issue that I am facing:
Below given is the editor options that I am setting
value: this.configOriginal, language: 'json', theme: this.theme, scrollBeyondLastLine: false, contextmenu: false, readOnly: true, cursorWidth: 0,
And given below is the CSS that I am trying to use to hide the tooltip:
.monaco-alert { display: none !important; visibility: hidden !important; }
Can anyone please help me solve this? I have been struggling with this since a long time.
Thank you so much.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Removing read-only editor tooltip (monaco-alert) from the ...
I tried to remove the tooltip that says 'cannot edit in a read-only editor using CSS. But, it seems that the CSS, although...
Read more >Removing the tooltip on the read-only editor that says 'cannot edit in ...
Hi, I tried to remove the tooltip that says 'cannot edit in a read-only editor using CSS. But, it seems that the CSS...
Read more >Configuration - Editor.js
If there is an error during initialization the isReady promise will be rejected with an error message. var editor = new EditorJS(); editor....
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 >EditorViewModel | ArcGIS Maps SDK for JavaScript 4.25
Attachment editing is enabled by default. canCreate Booleanreadonly. Convenience property that reads whether there are any editable layers that support the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kubocob Here is something that I tried and should work for your use case.
This code will immediately override the default
Cannot edit read-only editor
with your custom message.It would be nice, if the message tooltip could be customisable. This could be used for explanation of the “custom” reason, why the editor is in read-only state: