Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/components/CodeEditor/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export const CodeEditor = ({
themeDark = defaultThemeDark,
runEvalscriptButtonText = "Run evalscript",
runningEvalscriptButtonText = "Running evalscript",
readOnlyMessage = "Editor is in read only mode"
}) => {


Expand Down Expand Up @@ -237,10 +236,6 @@ export const CodeEditor = ({
});


const messageContribution = editorRef.current.getContribution('editor.contrib.messageController');
editorRef.current.onDidAttemptReadOnlyEdit(() => {
messageContribution.showMessage(readOnlyMessage, editorRef.current.getPosition());
});

monacoRef.current = monaco;
editorRef.current.onDidChangeModelContent(() => {
Expand Down
1 change: 0 additions & 1 deletion src/components/Wrapper/Wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ export default function Wrapper() {
editorTheme="dark"
portalId="root"
isReadOnly={isReadOnly}
readOnlyMessage={`Editor is in read only mode. Untick "Load script from URL" to enable it again.`}
/>
<h1 style={{ color: "white" }}>
Wrapper to simulate parent div in apps like EOB and RB
Expand Down